Struct crankstart::file::FileSystem
source · pub struct FileSystem(_);
Implementations§
source§impl FileSystem
impl FileSystem
pub fn get() -> Self
pub fn listfiles( &self, path: &str, show_invisible: bool ) -> Result<Vec<String>, Error>
pub fn stat(&self, path: &str) -> Result<FileStat, Error>
pub fn mkdir(&self, path: &str) -> Result<(), Error>
pub fn unlink(&self, path: &str, recursive: bool) -> Result<(), Error>
pub fn rename(&self, from_path: &str, to_path: &str) -> Result<(), Error>
pub fn open(&self, path: &str, options: FileOptions) -> Result<File, Error>
pub fn read_file_as_string(&self, path: &str) -> Result<String, Error>
Trait Implementations§
source§impl Clone for FileSystem
impl Clone for FileSystem
source§fn clone(&self) -> FileSystem
fn clone(&self) -> FileSystem
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl RefUnwindSafe for FileSystem
impl !Send for FileSystem
impl !Sync for FileSystem
impl Unpin for FileSystem
impl UnwindSafe for FileSystem
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more