pub struct EntryInfo {
pub name: String,
pub is_dir: bool,
pub is_file: bool,
pub is_symlink: bool,
pub size: u64,
pub modified: Option<u64>,
pub permissions: Option<u32>,
pub symlink_target: Option<PathBuf>,
}Expand description
Information about a file or directory entry.
Fields§
§name: StringEntry name (file or directory name).
is_dir: boolTrue if this is a directory.
is_file: boolTrue if this is a file.
is_symlink: boolTrue if this is a symbolic link.
size: u64Size in bytes.
modified: Option<u64>Last modification time (Unix timestamp in seconds).
permissions: Option<u32>Unix permissions (e.g., 0o644).
symlink_target: Option<PathBuf>For symlinks, the target path.
Implementations§
Trait Implementations§
Source§impl WalkerDirEntry for EntryInfo
impl WalkerDirEntry for EntryInfo
Auto Trait Implementations§
impl Freeze for EntryInfo
impl RefUnwindSafe for EntryInfo
impl Send for EntryInfo
impl Sync for EntryInfo
impl Unpin for EntryInfo
impl UnwindSafe for EntryInfo
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