pub trait FileInfo {
    // Required methods
    fn name(&self) -> &str;
    fn path(&self) -> String;
    fn real(&self) -> &Path;
    fn metadata(&self) -> Result<Metadata>;
}
Expand description

Information on a file

Required Methods§

source

fn name(&self) -> &str

Return just the filename

source

fn path(&self) -> String

Return the full “local” path

source

fn real(&self) -> &Path

Return the “real” path

source

fn metadata(&self) -> Result<Metadata>

Return the metadata for this file

Implementors§