[][src]Trait gvfs::vfs::VMetadata

pub trait VMetadata {
    fn is_dir(&self) -> bool;
fn is_file(&self) -> bool;
fn len(&self) -> u64; }

The metadata we can read from a file.

Required methods

fn is_dir(&self) -> bool

Returns whether or not it is a directory. Note that zip files don't actually have directories, awkwardly, just files with very long names.

fn is_file(&self) -> bool

Returns whether or not it is a file.

fn len(&self) -> u64

Returns the length of the thing. If it is a directory, the result of this is undefined/platform dependent.

Loading content...

Implementors

impl VMetadata for PhysicalMetadata[src]

Loading content...