pub struct FileSystem;Expand description
File system operations
Implementations§
Source§impl FileSystem
impl FileSystem
Sourcepub async fn create_dir(&self, path: &Path) -> Result<()>
pub async fn create_dir(&self, path: &Path) -> Result<()>
Create directory (single level)
Sourcepub async fn create_dir_all(&self, path: &Path) -> Result<()>
pub async fn create_dir_all(&self, path: &Path) -> Result<()>
Create directory (with all parent directories)
Sourcepub async fn remove_file(&self, path: &Path) -> Result<()>
pub async fn remove_file(&self, path: &Path) -> Result<()>
Remove file
Sourcepub async fn create_file(&self, path: &Path) -> Result<File>
pub async fn create_file(&self, path: &Path) -> Result<File>
Create file
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FileSystem
impl RefUnwindSafe for FileSystem
impl Send for FileSystem
impl Sync for FileSystem
impl Unpin for FileSystem
impl UnsafeUnpin for FileSystem
impl UnwindSafe for FileSystem
Blanket Implementations§
impl<T> Allocation for T
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