[−][src]Trait libunftp::storage::Metadata
Represents the metadata of a FTP File
Required methods
fn len(&self) -> u64
Returns the length (size) of the file in bytes.
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.
fn is_symlink(&self) -> bool
Returns true if the path is a symbolic link.
fn modified(&self) -> Result<SystemTime>
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.
Provided methods
fn is_empty(&self) -> bool
Returns self.len() == 0
.
fn permissions(&self) -> Permissions
Returns the permissions
of the file. The default implementation assumes unix permissions
and defaults to "rwxr-xr-x" (octal 7755)
Implementations on Foreign Types
impl Metadata for Metadata
[src]
fn len(&self) -> u64
[src]
fn is_dir(&self) -> bool
[src]
fn is_file(&self) -> bool
[src]
fn is_symlink(&self) -> bool
[src]
fn modified(&self) -> Result<SystemTime>
[src]
fn gid(&self) -> u32
[src]
fn uid(&self) -> u32
[src]
Implementors
impl Metadata for ObjectMetadata
[src]
fn len(&self) -> u64
[src]
Returns the length (size) of the file.
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.
fn is_symlink(&self) -> bool
[src]
Returns true if the path is a symlink.
fn modified(&self) -> Result<SystemTime, Error>
[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.