You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Canonicalize the paths. On windows this results in `\\?\` paths for which the `MAX_PATH`
25
+
// limit doesn't apply. Fallback to the original path if canonicalization fails. This can happen
26
+
// on Windows when using a network drive.
27
+
let from = from.as_ref().canonicalize().unwrap_or_else(|_| from.as_ref().to_owned());
28
+
let to = to.as_ref().parent().unwrap().canonicalize().map(|path| path.join(to.as_ref().file_name().unwrap())).unwrap_or_else(|_| to.as_ref().to_owned());
29
+
24
30
if fs::symlink_metadata(&from)?.file_type().is_symlink(){
0 commit comments