Enum fs_extra::dir::DirEntryAttr
source · pub enum DirEntryAttr {
Show 13 variants
Name,
Ext,
FullName,
Path,
DosPath,
FileSize,
Size,
IsDir,
IsFile,
Modified,
Accessed,
Created,
BaseInfo,
}
Expand description
Available attributes for get information about directory entry.
Variants§
Name
Folder name or file name without extension.
Ext
File extension.
FullName
Folder name or file name with extension.
Path
Path to file or directory.
DosPath
Dos path to file or directory.
FileSize
File size in bytes.
Size
Size file or directory in bytes.
Attention!
: This operation very expensive and sometimes required additional rights.
IsDir
Return whether entry is directory or not.
IsFile
Return whether entry is file or not.
Modified
Last modification time for directory entry.
Accessed
Last access time for directory entry.
Created
Created time for directory entry.
Attention!
: Not supported UNIX platform.
BaseInfo
Return or not return base information target folder.
Trait Implementations§
source§impl Clone for DirEntryAttr
impl Clone for DirEntryAttr
source§fn clone(&self) -> DirEntryAttr
fn clone(&self) -> DirEntryAttr
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 moresource§impl Hash for DirEntryAttr
impl Hash for DirEntryAttr
source§impl PartialEq<DirEntryAttr> for DirEntryAttr
impl PartialEq<DirEntryAttr> for DirEntryAttr
source§fn eq(&self, other: &DirEntryAttr) -> bool
fn eq(&self, other: &DirEntryAttr) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.