Real path of soft links with missing target
maxxedev at gmail.com
maxxedev at gmail.com
Wed Jul 20 20:03:07 UTC 2022
Ah, that works! Thanks!
On Wed, Jul 20, 2022 at 12:58 PM Brian Burkhalter
<brian.burkhalter at oracle.com> wrote:
>
>
>
> On Jul 20, 2022, at 11:19 AM, 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
More information about the nio-dev
mailing list