Package com.install4j.api.unix
Interface UnixFileSystem.FileInformation
- Enclosing class:
UnixFileSystem
public static interface UnixFileSystem.FileInformation
Holds Unix-specific information about a file.
-
Method Details
-
getMode
int getMode()Get the Unix mode of a file. To convert this mode to a human-readable octal string, useInteger.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()IfisLink
returnstrue
, this method returns the target file of the link.- Returns:
- the target file if the file is a link or
null
otherwise. - See Also:
-