Function std::fs::read_linkUnstable [-] [+] [src]

pub fn read_link<P: AsPath + ?Sized>(path: &P) -> Result<PathBuf>

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

Errors

This function will return an error on failure. Failure conditions include reading a file that does not exist or reading a file that is not a soft link.