Function async_std::fs::read_link[][src]

pub async fn read_link<P: AsRef<Path>>(path: P) -> Result<PathBuf>

Reads a symbolic link and returns 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:

Examples

use async_std::fs;

let path = fs::read_link("a.txt").await?;