We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e094fb commit afbc251Copy full SHA for afbc251
+stdlib/+fileio/read_symlink.m
@@ -7,14 +7,14 @@
7
import java.io.File
8
import java.nio.file.Files
9
10
+r = string.empty;
11
+
12
+if ~stdlib.fileio.is_symlink(p) || ~stdlib.fileio.exists(p), return, end
13
14
r = stdlib.fileio.absolute_path(p);
-if ~stdlib.fileio.exists(r) || ~stdlib.fileio.is_symlink(r)
- r = string.empty;
- return
-end
15
16
% https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/nio/file/Files.html#readSymbolicLink(java.nio.file.Path)
17
% must be absolute path
18
r = Files.readSymbolicLink(File(r).toPath());
19
20
+end
0 commit comments