Skip to content

Commit 191da0c

Browse files
committed
absolute_path: return UNC paths unmodified
1 parent bd196c4 commit 191da0c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

+stdlib/+fileio/absolute_path.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@
2424
abspath = p;
2525

2626
for i = 1:length(abspath)
27+
if ispc && startsWith(abspath(i), "\\")
28+
% UNC path is not canonicalized
29+
continue
30+
end
2731
abspath(i) = string(java.io.File(abspath(i)).getCanonicalPath());
2832
end
2933

0 commit comments

Comments
 (0)