Skip to content

Commit 4a82241

Browse files
committed
canonical: default non-java
1 parent b8e4592 commit 4a82241

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

+stdlib/canonical.m

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
arguments
1919
p (1,1) string
2020
expand_tilde (1,1) logical = true
21-
use_java (1,1) logical = true
21+
use_java (1,1) logical = false
2222
end
2323

2424
if expand_tilde
@@ -50,12 +50,13 @@
5050
end
5151
end
5252

53-
if use_java && stdlib.has_java
54-
% we use has_java check because default is use_java
53+
if use_java
5554
c = java.io.File(c).getCanonicalPath();
56-
else
55+
elseif e
5756
% similar benchmark time as java method
5857
c = builtin('_canonicalizepath', c);
58+
else
59+
c = stdlib.normalize(c, use_java);
5960
end
6061

6162
c = stdlib.posix(c);

0 commit comments

Comments
 (0)