Interface ResolvableLink

All Known Implementing Classes:
MacAlias, WindowsShortcut

public interface ResolvableLink
A filesystem indirection that points at another file or directory: a Windows shortcut (WindowsShortcut) or a macOS alias (MacAlias). Use Files.resolveLink(java.io.File) to obtain one.
Author:
Christian Pesch
  • Method Details

    • isDirectory

      boolean isDirectory()
      Returns:
      true if the link points to a directory
    • isFile

      boolean isFile()
      Returns:
      true if the link points to a file
    • getRealFilename

      String getRealFilename()
      Returns:
      the path of the file or directory pointed to by this link