Skip to main content

FileSystem

Trait FileSystem 

Source
pub trait FileSystem: Send + Sync {
    // Required methods
    fn read_file(&self, path: &Path) -> Result<Vec<u8>>;
    fn read_dir(&self, path: &Path) -> Result<Vec<DirEntry>>;
    fn exists(&self, path: &Path) -> bool;
}

Required Methods§

Source

fn read_file(&self, path: &Path) -> Result<Vec<u8>>

Source

fn read_dir(&self, path: &Path) -> Result<Vec<DirEntry>>

Source

fn exists(&self, path: &Path) -> bool

Implementors§