pub struct FileOperations { /* private fields */ }Implementations§
Source§impl FileOperations
impl FileOperations
pub fn new(verbose: bool) -> Self
Sourcepub fn copy_file(&self, from: &Path, to: &Path) -> Result<()>
pub fn copy_file(&self, from: &Path, to: &Path) -> Result<()>
Copy a single file from source to destination
Sourcepub fn copy_directory_contents(
&self,
from_dir: &Path,
to_dir: &Path,
filter: &dyn Fn(&Path) -> bool,
dry_run: bool,
) -> Result<CopyResult>
pub fn copy_directory_contents( &self, from_dir: &Path, to_dir: &Path, filter: &dyn Fn(&Path) -> bool, dry_run: bool, ) -> Result<CopyResult>
Copy directory contents with progress tracking
Auto Trait Implementations§
impl Freeze for FileOperations
impl RefUnwindSafe for FileOperations
impl Send for FileOperations
impl Sync for FileOperations
impl Unpin for FileOperations
impl UnwindSafe for FileOperations
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more