pub struct FsEntry {
pub name: String,
pub path: PathBuf,
pub is_dir: bool,
pub is_symlink: bool,
pub size: Option<u64>,
pub modified: Option<SystemTime>,
}Expand description
Directory entry returned by FileSystem::read_dir.
Fields§
§name: StringBase name (no parent path)
path: PathBufFull path
is_dir: boolWhether this entry is a directory.
is_symlink: boolWhether this entry itself is a symbolic link.
size: Option<u64>File size in bytes (files and file-links only; None for directories or when unavailable).
modified: Option<SystemTime>Last modified timestamp (when available).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FsEntry
impl RefUnwindSafe for FsEntry
impl Send for FsEntry
impl Sync for FsEntry
impl Unpin for FsEntry
impl UnsafeUnpin for FsEntry
impl UnwindSafe for FsEntry
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