Lines Matching refs:link
32 pub(crate) fn symlink_file(original: impl AsRef<Path>, link: impl AsRef<Path>) -> Result<()> { in symlink_file()
34 let link = link.as_ref(); in symlink_file() localVariable
37 if fs::exists(link) { in symlink_file()
38 best_effort_remove(link); in symlink_file()
40 let parent = link.parent().unwrap(); in symlink_file()
44 match paths::symlink_or_copy(original, link) { in symlink_file()
66 pub(crate) fn symlink_dir(original: impl AsRef<Path>, link: impl AsRef<Path>) -> Result<()> { in symlink_dir()
68 let link = link.as_ref(); in symlink_dir() localVariable
71 if fs::exists(link) { in symlink_dir()
72 best_effort_remove(link); in symlink_dir()
74 let parent = link.parent().unwrap(); in symlink_dir()
78 match fs::symlink_dir(original, link) { in symlink_dir()