Struct fatfs::FileSystem
[−]
[src]
pub struct FileSystem<'a> { /* fields omitted */ }
FAT filesystem main struct.
Methods
impl<'a> FileSystem<'a>
[src]
fn new<T: ReadWriteSeek>(
disk: &'a mut T,
options: FsOptions
) -> Result<FileSystem<'a>>
[src]
disk: &'a mut T,
options: FsOptions
) -> Result<FileSystem<'a>>
Creates new filesystem object instance.
Note: creating multiple filesystem objects with one underlying device/disk image can cause filesystem corruption.
fn fat_type(&self) -> FatType
[src]
Returns type of used File Allocation Table (FAT).
fn volume_id(&self) -> u32
[src]
Returns volume identifier read from BPB in Boot Sector.
fn volume_label(&self) -> String
[src]
Returns volume label from BPB in Boot Sector.
Note: File with VOLUME_ID attribute in root directory is ignored by this library. Only label from BPB is used.
fn root_dir<'b>(&'b self) -> Dir<'b, 'a>
[src]
Returns root directory object allowing futher penetration of filesystem structure.