Crate robocopyrs[−][src]
Expand description
Robocopyrs is a wrapper for the robocopy command in Windows.
use robocopyrs::RobocopyCommand; use robocopyrs::CopyMode; use robocopyrs::FileProperties; use robocopyrs::DirectoryProperties; use std::path::Path; let command = RobocopyCommand { source: Path::new("./source"), destination: Path::new("./destination"), copy_mode: Some(CopyMode::RESTARTABLE_MODE_BACKUP_MODE_FALLBACK), structure_and_size_zero_files_only: true, copy_file_properties: Some(FileProperties::all()), copy_dir_properties: Some(DirectoryProperties::all()), ..RobocopyCommand::default() }; command.execute()?;
Modules
Exit codes
Handle for Robocopy file and directory filter options
Logging Options
Performance options
Structs
Robocopy command Wrapper
Enums
The directory Properties Default is both Data and Attributes
The file Properties Default is both Data and Attributes
Traits
For enums that allow for multiple variants to be joined into a single variant