Struct openat::Metadata
[−]
[src]
pub struct Metadata { /* fields omitted */ }
A file metadata
Because we can't freely create a std::fs::Metadata
object we have to
implement our own structure.
Methods
impl Metadata
[src]
fn simple_type(&self) -> SimpleType
[src]
Returns simplified type of the directory entry
fn stat(&self) -> &stat
[src]
Returns underlying stat structure
fn is_file(&self) -> bool
[src]
Returns true
if the entry is a regular file
fn is_dir(&self) -> bool
[src]
Returns true
if the entry is a directory
fn permissions(&self) -> Permissions
[src]
Returns permissions of the entry
fn len(&self) -> u64
[src]
Returns file size