UnixFileSystem.FileInformation (install4j API)
Description: declaration: package: com.install4j.api.unix, class: UnixFileSystem, interface: FileInformation

# 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
  `String`
  `getLinkTarget()`
  If `isLink` returns `true`, this method returns the target file of the link.
  `int`
  `getMode()`
  Get the Unix mode of a file.
  `String`
  `getOwnerInfo()`
  Get the owner of a file.
  `boolean`
  `isLink()`
  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. This is 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` if the file is a link, `false` otherwise.

  - ### 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:
      - `isLink()`