[][src]Trait lms::file_ops::FileOps

pub trait FileOps {
    fn path(&self) -> &PathBuf;
fn remove(&self, path: &PathBuf);
fn copy(&self, src: &PathBuf, dest: &PathBuf); }

Interface for all file structs to perform common operations

Ensures that all files (file, dir, symlink) have a way of obtaining their path, copying, and deleting

Required methods

fn path(&self) -> &PathBuf

fn remove(&self, path: &PathBuf)

fn copy(&self, src: &PathBuf, dest: &PathBuf)

Loading content...

Implementors

impl FileOps for Dir[src]

impl FileOps for File[src]

impl FileOps for Symlink[src]

Loading content...