Struct flep::fs::Physical
[−]
[src]
pub struct Physical { pub root: PathBuf, }
A folder on the physical on-disk filesystem.
Fields
root: PathBuf
The root directory.
Methods
impl Physical
[src]
Trait Implementations
impl Clone for Physical
[src]
fn clone(&self) -> Physical
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for Physical
[src]
impl PartialEq for Physical
[src]
fn eq(&self, __arg_0: &Physical) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Physical) -> bool
This method tests for !=
.
impl Eq for Physical
[src]
impl FileSystem for Physical
[src]
fn list(&self, path: &Path) -> Result<Vec<String>, Error>
List all files/directories at a specific path.
fn create_dir(&mut self, _path: &Path) -> Result<(), Error>
Make a new directory.
fn write_file(&mut self, _path: &Path, _data: Vec<u8>) -> Result<(), Error>
Write data into a file.
fn read_file(&self, _path: &Path) -> Result<Vec<u8>, Error>
Read data from a file.