Lines Matching refs:link
32 pub(crate) fn symlink_file(original: impl AsRef<Path>, link: impl AsRef<Path>) -> Result<()> {
34 let link = link.as_ref();
37 if fs::exists(link) {
38 best_effort_remove(link);
40 let parent = link.parent().unwrap();
44 match paths::symlink_or_copy(original, link) {
50 // created the same link or copy. The cxx_build target directory
66 pub(crate) fn symlink_dir(original: impl AsRef<Path>, link: impl AsRef<Path>) -> Result<()> {
68 let link = link.as_ref();
71 if fs::exists(link) {
72 best_effort_remove(link);
74 let parent = link.parent().unwrap();
78 match fs::symlink_dir(original, link) {