Skip to content

Commit 38b3c94

Browse files
committed
ci: is_mount: workaround
1 parent d3721e0 commit 38b3c94

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

+stdlib/+python/is_mount.m

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44

55
function y = is_mount(filepath)
66

7+
% some Python on CI needs this. Didn't replicate on local Windows PC.
8+
if ispc() && strcmp(filepath, stdlib.root_name(filepath)) && ~endsWith(filepath, ["/", "\"])
9+
y = false;
10+
return
11+
end
12+
713
try
814
y = py.os.path.ismount(filepath);
915
catch e

+stdlib/+sys/samepath.m

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@
1414
flag = '-c';
1515
end
1616

17-
cmd = "stat " + flag + " %d:%i " + path1 + " && stat " + flag + " %d:%i " + path2;
17+
cmd1 = "stat " + flag + " %d:%i " + '"' + path1 + '"';
18+
cmd2 = "stat " + flag + " %d:%i " + '"' + path2 + '"';
19+
20+
cmd = cmd1 + " && " + cmd2;
1821

1922
[s, m] = system(cmd);
2023
if s ~= 0

0 commit comments

Comments
 (0)