pub fn is_symlink_file<T>(path: T) -> bool
Expand description
Returns true if the given path exists and is a symlinked file. Handles path expansion
ยงExamples
use fungus::prelude::*;
let tmpdir = PathBuf::from("tests/temp").abs().unwrap().mash("path_doc_is_symlink_file");
assert!(sys::remove_all(&tmpdir).is_ok());
let file1 = tmpdir.mash("file1");
let link1 = tmpdir.mash("link1");
assert!(sys::mkdir(&tmpdir).is_ok());
assert!(sys::touch(&file1).is_ok());
assert!(sys::symlink(&link1, &file1).is_ok());
assert_eq!(sys::is_symlink_file(link1), true);
assert!(sys::remove_all(&tmpdir).is_ok());