public interface PosixFileAttributes extends BasicFileAttributes
The POSIX attributes of a file are retrieved using a PosixFileAttributeView
by invoking its readAttributes
method.
Modifier and Type | Method and Description |
---|---|
GroupPrincipal |
group()
Returns the group owner of the file.
|
UserPrincipal |
owner()
Returns the owner of the file.
|
Set<PosixFilePermission> |
permissions()
Returns the permissions of the file.
|
creationTime, fileKey, isDirectory, isOther, isRegularFile, isSymbolicLink, lastAccessTime, lastModifiedTime, size
UserPrincipal owner()
FileOwnerAttributeView.setOwner(java.nio.file.attribute.UserPrincipal)
GroupPrincipal group()
PosixFileAttributeView.setGroup(java.nio.file.attribute.GroupPrincipal)
Set<PosixFilePermission> permissions()
PosixFilePermission
elements. The returned set is a
copy of the file permissions and is modifiable. This allows the result
to be modified and passed to the setPermissions
method to update the file's permissions.PosixFileAttributeView.setPermissions(java.util.Set<java.nio.file.attribute.PosixFilePermission>)
aicas GmbH, Karlsruhe, Germany —www.aicas.com
Copyright © 2001-2019 aicas GmbH. All Rights Reserved.