Function fs_tree::util::symlink_follow

source ·
pub fn symlink_follow<P: AsRef<Path>>(path: P) -> Result<PathBuf>
Expand description

Follow symlink at path in one level, and return the new path.

Errors:

  • If path does not exist
  • If path is not a symlink
  • If Io::Error from fs::read_link(path)