pub struct FileMeta {
pub path: PathBuf,
pub len: u64,
pub created: Option<SystemTime>,
pub modified: Option<SystemTime>,
pub is_file: bool,
pub is_dir: bool,
pub is_symlink: bool,
}Expand description
Metadata for a filesystem entry at a file path.
Fields§
§path: PathBufFile path.
len: u64File size in bytes.
created: Option<SystemTime>Creation time, when available.
modified: Option<SystemTime>Last modification time, when available.
is_file: boolWhether this path is a regular file.
is_dir: boolWhether this path is a directory.
is_symlink: boolWhether this path is a symlink.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FileMeta
impl RefUnwindSafe for FileMeta
impl Send for FileMeta
impl Sync for FileMeta
impl Unpin for FileMeta
impl UnsafeUnpin for FileMeta
impl UnwindSafe for FileMeta
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more