pub trait Handle {
// Required methods
fn is_dir(&self, path: &RelativePath) -> bool;
fn is_file(&self, path: &RelativePath) -> bool;
fn create_dir_all(&self, path: &RelativePath) -> Result<()>;
fn create(&self, path: &RelativePath) -> Result<Box<dyn Write>>;
}
Required Methods§
Sourcefn is_dir(&self, path: &RelativePath) -> bool
fn is_dir(&self, path: &RelativePath) -> bool
Check if the given path is a directory or not.
Sourcefn is_file(&self, path: &RelativePath) -> bool
fn is_file(&self, path: &RelativePath) -> bool
Check if the given path is a file or not.
Sourcefn create_dir_all(&self, path: &RelativePath) -> Result<()>
fn create_dir_all(&self, path: &RelativePath) -> Result<()>
Recursively create the given path.