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

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>;
fn gid(&self) -> u32;
fn uid(&self) -> u32; fn is_empty(&self) -> bool { ... }
fn permissions(&self) -> Permissions { ... } }
Expand description

Represents the metadata of a FTP File

Required methods

fn len(&self) -> u64[src]

Returns the length (size) of the file in bytes.

fn is_dir(&self) -> bool[src]

Returns true if the path is a directory.

fn is_file(&self) -> bool[src]

Returns true if the path is a file.

Returns true if the path is a symbolic link.

fn modified(&self) -> Result<SystemTime>[src]

Returns the last modified time of the path.

fn gid(&self) -> u32[src]

Returns the gid of the file.

fn uid(&self) -> u32[src]

Returns the uid of the file.

Provided methods

fn is_empty(&self) -> bool[src]

Returns self.len() == 0.

fn permissions(&self) -> Permissions[src]

Returns the permissions of the file. The default implementation assumes unix permissions and defaults to “rwxr-xr-x” (octal 7755)

Implementors