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 extention.

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.