File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 88
99if isMATLABReleaseOlderThan(" R2024b" )
1010 % must be absolute path
11- ok = java .nio .file .Files .isSymbolicLink(java .io .File(stdlib .fileio .absolute_path(p )).toPath());
11+ p = stdlib .fileio .absolute_path(p );
12+ ok = java .nio .file .Files .isSymbolicLink(java .io .File(p ).toPath());
1213else
1314 ok = isSymbolicLink(p );
1415end
Original file line number Diff line number Diff line change 88
99if isMATLABReleaseOlderThan(" R2024b" )
1010
11- if ~stdlib .fileio .is_symlink(p ) || ~ stdlib . fileio .exists( p )
11+ if ~stdlib .fileio .is_symlink(p )
1212 return
1313end
1414
1515r = stdlib .fileio .absolute_path(p );
1616
1717% https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/nio/file/Files.html#readSymbolicLink(java.nio.file.Path)
1818% must be absolute path
19- r = stdlib .fileio .posix(java .nio .file .Files .readSymbolicLink(java .io .File(r ).toPath()));
19+ r = stdlib .fileio .posix(...
20+ java .nio .file .Files .readSymbolicLink(java .io .File(r ).toPath()));
2021
2122else
2223 [ok , t ] = isSymbolicLink(p );
You can’t perform that action at this time.
0 commit comments