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 e2add18 commit 0dc42e3Copy full SHA for 0dc42e3
+stdlib/get_permissions.m
@@ -15,17 +15,16 @@
15
if strcmp(e.identifier, "MATLAB:io:filesystem:filePermissions:CannotFindLocation")
16
return
17
elseif strcmp(e.identifier, "Octave:undefined-function")
18
- s = stat(f);
19
- if ~isempty(s)
20
- p = s.modestr;
+ try %#ok<TRYNC>
+ p = stat(f).modestr;
21
end
22
23
- elseif ~strcmp(e.identifier, "MATLAB:UndefinedFunction")
+ elseif strcmp(e.identifier, "MATLAB:UndefinedFunction")
+ v = file_attributes(f);
24
+ if isempty(v), return, end
25
+ else
26
rethrow(e)
27
-
- v = file_attributes(f);
28
- if isempty(v), return, end
29
30
31
p = perm2char(v);
0 commit comments