[−][src]Function async_std::fs::read_link
pub async fn read_link<P: AsRef<Path>>(path: P) -> Result<PathBuf>
Reads a symbolic link, returning the path it points to.
This function is an async version of std::fs::read_link
.
Errors
An error will be returned in the following situations (not an exhaustive list):
path
is not a symbolic link.path
does not exist.
Examples
use async_std::fs; let path = fs::read_link("a.txt").await?;