pub struct DirEntry { /* private fields */ }Expand description
A directory entry like std::fs::DirEntry.
Implementations§
Source§impl DirEntry
impl DirEntry
Sourcepub fn path(&self) -> &Path
pub fn path(&self) -> &Path
Returns the full path to the file that this entry represents.
The full path is created by joining the original path to WalkDir::new with the filename of this entry.
Sourcepub fn metadata(&self) -> Option<Metadata>
pub fn metadata(&self) -> Option<Metadata>
Return the metadata for the file that this entry points at.
Sourcepub fn file_type(&self) -> FileType
pub fn file_type(&self) -> FileType
Return the file type for the file that this entry points at.
Trait Implementations§
Auto Trait Implementations§
impl !Send for DirEntry
impl !Sync for DirEntry
impl Freeze for DirEntry
impl RefUnwindSafe for DirEntry
impl Unpin for DirEntry
impl UnsafeUnpin for DirEntry
impl UnwindSafe for DirEntry
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