Skip to content

Commit 71097a7

Browse files
committed
is_exe: must also be a file
1 parent 43fb095 commit 71097a7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

+stdlib/is_exe.m

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@
1010
% end
1111
if nargin < 2, use_java = false; end
1212

13+
if ~isfile(p)
14+
ok = false;
15+
return
16+
end
17+
1318
if stdlib.isoctave()
1419
ok = javaObject("java.io.File", p).canExecute();
1520
elseif use_java

0 commit comments

Comments
 (0)