[−][src]Trait sgx_tstd::untrusted::path::PathEx
Required methods
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
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
.
fn symlink_metadata(&self) -> Result<Metadata>
[src]
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
.
fn read_link(&self) -> Result<PathBuf>
[src]
Reads a symbolic link, returning the file that the link points to.
This is an alias to fs::read_link
.
fn read_dir(&self) -> Result<ReadDir>
[src]
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
.