We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5444f7 commit 9fdc343Copy full SHA for 9fdc343
+stdlib/get_permissions.m
@@ -46,7 +46,16 @@
46
if v.UserWrite, p(2) = 'w'; end
47
end
48
49
-if v.UserExecute, p(3) = 'x'; end
+% on Windows, any readable file has executable permission
50
+if ispc
51
+ if p(1) == 'r'
52
+ p(3) = 'x';
53
+ end
54
+else
55
+ if v.UserExecute, p(3) = 'x'; end
56
+end
57
+
58
+% Windows doesn't have these permissions
59
60
try
61
if v.GroupRead, p(4) = 'r'; end
@@ -58,6 +67,7 @@
67
catch e
68
if ~strcmp(e.identifier, "MATLAB:nologicalnan") && ...
69
~strcmp(e.identifier, "MATLAB:nonExistentField") && ...
70
+ ~strcmp(e.identifier, "MATLAB:noSuchMethodOrField") && ...
71
~strcmp(e.message, "invalid conversion from NaN to logical")
62
72
rethrow(e)
63
73
0 commit comments