Struct fatfs::Dir
[−]
[src]
pub struct Dir<'a, 'b: 'a> { /* fields omitted */ }
FAT directory
Methods
impl<'a, 'b> Dir<'a, 'b>
[src]
fn iter(&self) -> DirIter<'a, 'b>
[src]
Creates directory entries iterator
fn open_dir(&mut self, path: &str) -> Result<Dir<'a, 'b>>
[src]
Opens existing directory
fn open_file(&mut self, path: &str) -> Result<File<'a, 'b>>
[src]
Opens existing file.
fn create_file(&mut self, path: &str) -> Result<File<'a, 'b>>
[src]
Creates new file or opens existing without truncating.
fn create_dir(&mut self, path: &str) -> Result<Dir<'a, 'b>>
[src]
Creates new directory or opens existing.
fn remove(&mut self, path: &str) -> Result<()>
[src]
Removes existing file or directory.
Make sure there is no reference to this file (no File instance) or filesystem corruption can happen.