Compare commits
7 commits
838ae0755b
...
6344577a40
Author | SHA1 | Date | |
---|---|---|---|
6344577a40 | |||
e576e6e579 | |||
10a745899d | |||
0db3bd40fe | |||
74977947d9 | |||
8404b9fd8e | |||
35791fe389 |
1 changed files with 2 additions and 6 deletions
|
@ -794,12 +794,8 @@ mod canonicalize {
|
||||||
let link = fs.path(&link_path);
|
let link = fs.path(&link_path);
|
||||||
file.soft_link(&link).expect("create");
|
file.soft_link(&link).expect("create");
|
||||||
let canonical = link.canonicalize().expect("canonicalize");
|
let canonical = link.canonicalize().expect("canonicalize");
|
||||||
let canonical = if canonical.starts_with("/private") {
|
// macos puts all temp files under /private
|
||||||
// INFO: macos puts all temp files under /private
|
let canonical = Path::new("/").join(canonical.strip_prefix("/private").unwrap());
|
||||||
Path::new("/").join(canonical.strip_prefix("/private").unwrap())
|
|
||||||
} else {
|
|
||||||
canonical
|
|
||||||
};
|
|
||||||
assert_eq!(canonical, file_path);
|
assert_eq!(canonical, file_path);
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|
Loading…
Reference in a new issue