Real path of soft links with missing target

Brian Burkhalter brian.burkhalter at oracle.com
Wed Jul 20 19:58:39 UTC 2022



On Jul 20, 2022, at 11:19 AM, maxxedev at gmail.com<mailto:maxxedev at gmail.com> wrote:

Motivation is: how could one replicate "ls -l" functionality in Java?
"ls -l" does show the link target even if it's missing.

How about https://docs.oracle.com/en/java/javase/18/docs/api/java.base/java/nio/file/Files.html#readSymbolicLink(java.nio.file.Path)?

Brian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/nio-dev/attachments/20220720/0a436de0/attachment-0001.htm>


More information about the nio-dev mailing list