Function async_copy_dir_files

Source
pub async fn async_copy_dir_files(
    src_dir: &str,
    dest_dir: &str,
) -> Result<(), Error>
Expand description

Asynchronously copies all files from the source directory to the destination directory.

§Arguments

  • &str - The source directory path.
  • &str - The destination directory path.

§Returns

  • Result<(), std::io::Error> - Ok if all files were copied successfully, Err with error details otherwise.