Skip to main content

copy_recursive

Function copy_recursive 

Source
pub fn copy_recursive(
    src: &Path,
    dst: &Path,
    opts: &CopyOptions,
) -> Result<(), CopyError>
Expand description

Recursively copies a file or directory from src to dst.

§Arguments

  • src - The path to the source file or directory.
  • dst - The destination path.
  • opts - Configuration options for the copy process.

§Returns

  • Ok(()) if the copy operation was successful.
  • Err(CopyError) if an error occurred during the process (e.g., a source not found).