FileMover

Trait FileMover 

Source
pub trait FileMover {
    // Required methods
    fn relocate(
        &self,
        source_file: &Path,
        destination_directory: &Path,
    ) -> Result<()>;
    fn copy(&self, source: &Path, destination: &Path) -> Result<()>;
    fn remove(&self, p: &Path) -> Result<()>;
}

Required Methods§

Source

fn relocate( &self, source_file: &Path, destination_directory: &Path, ) -> Result<()>

Source

fn copy(&self, source: &Path, destination: &Path) -> Result<()>

Source

fn remove(&self, p: &Path) -> Result<()>

Implementors§