Trait FileSystem
pub trait FileSystem {
// Required methods
fn create_directory(&self, path: &str) -> bool;
fn create_log_file(&self, filename: &str) -> bool;
}Expand description
Trait for file system operations to enable mocking in tests
Required Methods§
fn create_directory(&self, path: &str) -> bool
fn create_directory(&self, path: &str) -> bool
Create a directory
fn create_log_file(&self, filename: &str) -> bool
fn create_log_file(&self, filename: &str) -> bool
Create a log file