File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 2323 c = p ;
2424end
2525
26- if ~stdlib .is_absolute(c )
26+ if stdlib .is_absolute(c )
27+ c = stdlib .posix(c );
28+ else
2729 % .getAbsolutePath(), .toAbsolutePath()
2830 % default is Documents/Matlab, which is probably not wanted.
2931 if isempty(base ) || strlength(base ) == 0
3335 end
3436end
3537
38+ % not needed:
3639% https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/io/File.html#getAbsolutePath()
3740
38- c = stdlib .posix(java .io .File(c ).getAbsolutePath());
39-
4041end % function
Original file line number Diff line number Diff line change @@ -9,8 +9,6 @@ function test_absolute(tc)
99import matlab .unittest .constraints .StartsWithSubstring
1010import matlab .unittest .constraints .EndsWithSubstring
1111
12- tc .assumeTrue(stdlib .has_java )
13-
1412td = tc .applyFixture(TemporaryFolderFixture ).Folder;
1513tc .applyFixture(CurrentFolderFixture(td ))
1614
You can’t perform that action at this time.
0 commit comments