[][src]Trait libunftp::storage::Metadata

pub trait Metadata {
    fn len(&self) -> u64;
fn is_dir(&self) -> bool;
fn is_file(&self) -> bool;
fn is_symlink(&self) -> bool;
fn modified(&self) -> Result<SystemTime, Error>;
fn gid(&self) -> u32;
fn uid(&self) -> u32; fn is_empty(&self) -> bool { ... } }

Represents the Metadata of a file

Required methods

fn len(&self) -> u64

Returns the length (size) of the file.

fn is_dir(&self) -> bool

Returns true if the path is a directory.

fn is_file(&self) -> bool

Returns true if the path is a file.

Returns true if the path is a symlink.

fn modified(&self) -> Result<SystemTime, Error>

Returns the last modified time of the path.

fn gid(&self) -> u32

Returns the gid of the file.

fn uid(&self) -> u32

Returns the uid of the file.

Loading content...

Provided methods

fn is_empty(&self) -> bool

Returns self.len() == 0.

Loading content...

Implementations on Foreign Types

impl Metadata for Metadata[src]

Loading content...

Implementors

Loading content...