Skip to content

Commit 70e13f6

Browse files
committed
is_mount: windows needs add'l check for some Python
1 parent 05d3aa7 commit 70e13f6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

+stdlib/+python/is_mount.m

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

55
function y = is_mount(filepath)
66

7+
% this is necessary for some Pythons, even the same X.Y may have different behavior due to
8+
% patch bugfixes
9+
if ~isfolder(filepath) || (filepath == stdlib.root(filepath) && ~endsWith(filepath, ["/", "\"]))
10+
y = false;
11+
return
12+
end
13+
714
try
815
y = py.os.path.ismount(filepath);
916
catch e

0 commit comments

Comments
 (0)