[−][src]Function async_std::fs::symlink_metadata
pub async fn symlink_metadata<P: AsRef<Path>>(path: P) -> Result<Metadata>
Queries the metadata for a path without following symlinks.
This function is an async version of std::fs::symlink_metadata
.
Errors
An error will be returned in the following situations (not an exhaustive list):
path
does not exist.- The current process lacks permissions to query metadata for
path
.
Examples
use async_std::fs; let perm = fs::symlink_metadata("a.txt").await?.permissions();