Function async_copy_file

Source
pub async fn async_copy_file(src: &str, dest: &str) -> Result<(), Error>
Expand description

Asynchronously copies a file from the source path to the destination path.

  • src: The source file path.

  • dest: The destination file path.

  • Returns: Ok(()) if the file was copied successfully, or an Err with the error details.