public abstract Set<PosixFilePermission> permissions ()

Returns the permissions of the file. The file permissions are returned as a set of 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.

Returns:  the file permissions

See also:
PosixFileAttributeView.setPermissions