Struct fatfs::DirEntry
[−]
[src]
pub struct DirEntry<'a, 'b: 'a> { /* fields omitted */ }
FAT directory entry.
Returned by DirIter.
Methods
impl<'a, 'b> DirEntry<'a, 'b>
[src]
fn short_file_name(&self) -> String
[src]
Returns short file name
fn file_name(&self) -> String
[src]
Returns long file name or if it doesn't exist fallbacks to short file name.
fn attributes(&self) -> FileAttributes
[src]
Returns file attributes
fn is_dir(&self) -> bool
[src]
Checks if entry belongs to directory.
fn is_file(&self) -> bool
[src]
Checks if entry belongs to regular file.
fn to_file(&self) -> File<'a, 'b>
[src]
Returns File struct for this entry.
Panics if this is not a file.
fn to_dir(&self) -> Dir<'a, 'b>
[src]
Returns Dir struct for this entry.
Panics if this is not a directory.
fn len(&self) -> u64
[src]
Returns file size or 0 for directory.
fn created(&self) -> DateTime
[src]
Returns file creation date and time.
fn accessed(&self) -> Date
[src]
Returns file last access date.
fn modified(&self) -> DateTime
[src]
Returns file last modification date and time.
Trait Implementations
impl<'a, 'b: 'a> Clone for DirEntry<'a, 'b>
[src]
fn clone(&self) -> DirEntry<'a, 'b>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more