Trait reproto_core::Handle
[−]
[src]
pub trait Handle {
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<Write>>;
}
Required Methods
fn is_dir(&self, path: &RelativePath) -> bool
Check if the given path is a directory or not.
fn is_file(&self, path: &RelativePath) -> bool
Check if the given path is a file or not.
fn create_dir_all(&self, path: &RelativePath) -> Result<()>
Recursively create the given path.
fn create(&self, path: &RelativePath) -> Result<Box<Write>>
Create the given file (for writing).