Skip to main content

CcsFilesystem

Trait CcsFilesystem 

Source
pub trait CcsFilesystem {
    // Required methods
    fn exists(&self, path: &Path) -> bool;
    fn read_to_string(&self, path: &Path) -> Result<String>;
    fn read_dir(&self, path: &Path) -> Result<Vec<CcsDirEntry>>;
}
Expand description

Trait for CCS filesystem operations.

This trait abstracts filesystem access for testability.

Required Methods§

Source

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

Source

fn read_to_string(&self, path: &Path) -> Result<String>

Source

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

Implementors§