The POSIX attributes of a file are retrieved using a PosixFileAttributeView
by invoking its readAttributes
method.
Modifier and Type | Method and Description |
---|---|
public GroupPrincipal | |
public UserPrincipal | |
public Set |
group | back to summary |
---|---|
public GroupPrincipal group() Returns the group owner of the file.
|
owner | back to summary |
---|---|
public UserPrincipal owner() Returns the owner of the file.
|
permissions | back to summary |
---|---|
public Set Returns the permissions of the file. The file permissions are returned
as a set of
|