pub fn copy_dir_all_async(src: &Path, dst: &Path) -> Result<()>Expand description
Asynchronously copies an entire directory structure, preserving file attributes and handling nested directories.
§Parameters
src: A reference to the source directory path.dst: A reference to the destination directory path.
§Returns
Result<()>:Ok(()): If the directory copying is successful.Err(e): If an error occurs during the directory copying, whereeis the associated error.
§Errors
This function can return the following errors:
std::io::Error: If an error occurs during directory creation, file copying, or permission issues.anyhow::Error: If a file safety check fails.