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 8
8
9
9
if isMATLABReleaseOlderThan(" R2024b" )
10
10
% 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());
12
13
else
13
14
ok = isSymbolicLink(p );
14
15
end
Original file line number Diff line number Diff line change 8
8
9
9
if isMATLABReleaseOlderThan(" R2024b" )
10
10
11
- if ~stdlib .fileio .is_symlink(p ) || ~ stdlib . fileio .exists( p )
11
+ if ~stdlib .fileio .is_symlink(p )
12
12
return
13
13
end
14
14
15
15
r = stdlib .fileio .absolute_path(p );
16
16
17
17
% https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/nio/file/Files.html#readSymbolicLink(java.nio.file.Path)
18
18
% 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()));
20
21
21
22
else
22
23
[ok , t ] = isSymbolicLink(p );
You can’t perform that action at this time.
0 commit comments