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 bbf9f14 commit a97a659Copy full SHA for a97a659
+stdlib/get_permissions.m
@@ -10,13 +10,17 @@
10
p = '';
11
12
try
13
- if ~stdlib.exists(f), return, end
14
v = filePermissions(f);
15
catch e
16
if strcmp(e.identifier, "MATLAB:io:filesystem:filePermissions:CannotFindLocation")
17
return
18
- elseif ~strcmp(e.identifier, "MATLAB:UndefinedFunction") && ...
19
- ~strcmp(e.identifier, "Octave:undefined-function")
+ elseif strcmp(e.identifier, "Octave:undefined-function")
+ s = stat(f);
+ if ~isempty(s)
20
+ p = s.modestr;
21
+ end
22
+ return
23
+ elseif ~strcmp(e.identifier, "MATLAB:UndefinedFunction")
24
rethrow(e)
25
end
26
0 commit comments