Struct zbox::DirEntry [−][src]
pub struct DirEntry { /* fields omitted */ }
Entries returned by the read_dir
function.
An instance of DirEntry
represents an entry inside of a directory in the
repository. Each entry can be inspected via methods to learn about the
full path or other metadata.
Methods
impl DirEntry
[src]
impl DirEntry
pub fn path(&self) -> &Path
[src]
pub fn path(&self) -> &Path
Returns the full path to the file that this entry represents.
pub fn file_name(&self) -> &str
[src]
pub fn file_name(&self) -> &str
Returns the bare file name of this directory entry without any other leading path component.
pub fn metadata(&self) -> Metadata
[src]
pub fn metadata(&self) -> Metadata
Return the metadata for the file that this entry points at.