Function brane_shr::fs::copy_dir_recursively_async

source ·
pub async fn copy_dir_recursively_async(
    source: impl AsRef<Path>,
    target: impl AsRef<Path>,
) -> Result<(), Error>
Expand description

Recursively copies the given directory using tokio’s async library.

§Arguments

  • source: The current, existing directory to copy.
  • target: The target, non-existing location where the directory will be copied to.

§Errors

This function errors if we failed to read or write anything or if some directories do or do not exist.