Interface UnixFileSystem.FileInformation

Enclosing class:
UnixFileSystem

public static interface UnixFileSystem.FileInformation
Holds Unix-specific information about a file.
  • Method Summary

    Modifier and Type
    Method
    Description
    If isLink returns true, this method returns the target file of the link.
    int
    Get the Unix mode of a file.
    Get the owner of a file.
    boolean
    Return whether the file is a link or not.
  • Method Details

    • getMode

      int getMode()
      Get the Unix mode of a file. To convert this mode to a human-readable octal string, use Integer.toOctalString.
      Returns:
      the Unix mode
    • getOwnerInfo

      String getOwnerInfo()
      Get the owner of a file. Depending on the platform, this is either a user name like "user" or a user name followed by a colon and a group name, like "user:group".
      Returns:
      the owner of the file.
    • isLink

      boolean isLink()
      Return whether the file is a link or not.
      Returns:
      true or false.
    • getLinkTarget

      String getLinkTarget()
      If isLink returns true, this method returns the target file of the link.
      Returns:
      the target file if the file is a link or null otherwise.
      See Also: