[][src]Trait sgx_tstd::untrusted::path::PathEx

pub trait PathEx {
    fn metadata(&self) -> Result<Metadata>;
fn symlink_metadata(&self) -> Result<Metadata>;
fn canonicalize(&self) -> Result<PathBuf>;
fn read_link(&self) -> Result<PathBuf>;
fn read_dir(&self) -> Result<ReadDir>;
fn exists(&self) -> bool;
fn is_file(&self) -> bool;
fn is_dir(&self) -> bool; }

Required methods

fn metadata(&self) -> Result<Metadata>

fn canonicalize(&self) -> Result<PathBuf>

fn read_dir(&self) -> Result<ReadDir>

fn exists(&self) -> bool

fn is_file(&self) -> bool

fn is_dir(&self) -> bool

Loading content...

Implementors

impl PathEx for Path[src]

fn metadata(&self) -> Result<Metadata>[src]

Queries the file system to get information about a file, directory, etc.

This function will traverse symbolic links to query information about the destination file.

This is an alias to fs::metadata.

Queries the metadata about a file without following symlinks.

This is an alias to fs::symlink_metadata.

fn canonicalize(&self) -> Result<PathBuf>[src]

Returns the canonical form of the path with all intermediate components normalized and symbolic links resolved.

This is an alias to fs::canonicalize.

Reads a symbolic link, returning the file that the link points to.

This is an alias to fs::read_link.

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

Returns whether the path points at an existing entity.

This function will traverse symbolic links to query information about the destination file. In case of broken symbolic links this will return false.

If you cannot access the directory containing the file, e.g. because of a permission error, this will return false.

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

Returns whether the path exists on disk and is pointing at a regular file.

This function will traverse symbolic links to query information about the destination file. In case of broken symbolic links this will return false.

If you cannot access the directory containing the file, e.g. because of a permission error, this will return false.

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

Returns whether the path exists on disk and is pointing at a directory.

This function will traverse symbolic links to query information about the destination file. In case of broken symbolic links this will return false.

If you cannot access the directory containing the file, e.g. because of a permission error, this will return false.

Loading content...