Function copy_dir_files

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

Copies all files from the source directory to the destination directory.

  • src_dir: The source directory path.

  • dest_dir: The destination directory path.

  • Returns: Ok(()) if all files were copied successfully, or an Err with the error details. Copies a directory and all its contents to another location.

  • src_dir: The source directory path.

  • dest_dir: The destination directory path.

  • Returns: Ok(()) if the directory and its contents were copied successfully, or an Err with the error details.