# PosixFileAttributes

public interface **PosixFileAttributes** implements [BasicFileAttributes](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/attribute/BasicFileAttributes.html) File attributes associated with files on file systems used by operating systems
that implement the Portable Operating System Interface (POSIX) family of
standards.

The POSIX attributes of a file are retrieved using a `https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/attribute/PosixFileAttributeView.html` by invoking its `https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/attribute/PosixFileAttributeView.html#readAttributes()` method.

### Public Method Summary

|---|---|
| abstract [GroupPrincipal](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/attribute/GroupPrincipal.html) | [group](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/attribute/PosixFileAttributes.html#group())() Returns the group owner of the file. |
| abstract [UserPrincipal](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/attribute/UserPrincipal.html) | [owner](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/attribute/PosixFileAttributes.html#owner())() Returns the owner of the file. |
| abstract [Set](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Set.html)\<[PosixFilePermission](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/attribute/PosixFilePermission.html)\> | [permissions](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/attribute/PosixFileAttributes.html#permissions())() Returns the permissions of the file. |

### Inherited Method Summary

From interface [java.nio.file.attribute.BasicFileAttributes](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/attribute/BasicFileAttributes.html)

|---|---|
| abstract FileTime | [creationTime](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/attribute/BasicFileAttributes.html#creationTime())() Returns the creation time. |
| abstract [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) | [fileKey](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/attribute/BasicFileAttributes.html#fileKey())() Returns an object that uniquely identifies the given file, or `null` if a file key is not available. |
| abstract boolean | [isDirectory](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/attribute/BasicFileAttributes.html#isDirectory())() Tells whether the file is a directory. |
| abstract boolean | [isOther](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/attribute/BasicFileAttributes.html#isOther())() Tells whether the file is something other than a regular file, directory, or symbolic link. |
| abstract boolean | [isRegularFile](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/attribute/BasicFileAttributes.html#isRegularFile())() Tells whether the file is a regular file with opaque content. |
| abstract boolean | [isSymbolicLink](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/attribute/BasicFileAttributes.html#isSymbolicLink())() Tells whether the file is a symbolic link. |
| abstract FileTime | [lastAccessTime](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/attribute/BasicFileAttributes.html#lastAccessTime())() Returns the time of last access. |
| abstract FileTime | [lastModifiedTime](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/attribute/BasicFileAttributes.html#lastModifiedTime())() Returns the time of last modification. |
| abstract long | [size](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/attribute/BasicFileAttributes.html#size())() Returns the size of the file (in bytes). |

## Public Methods

#### public abstract [GroupPrincipal](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/attribute/GroupPrincipal.html)
**group**
()

Returns the group owner of the file.

##### Returns

- the file group owner

##### See Also

- `https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/attribute/PosixFileAttributeView.html#setGroup(java.nio.file.attribute.GroupPrincipal)`

#### public abstract [UserPrincipal](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/attribute/UserPrincipal.html)
**owner**
()

Returns the owner of the file.

##### Returns

- the file owner

##### See Also

- `https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/attribute/FileOwnerAttributeView.html#setOwner(java.nio.file.attribute.UserPrincipal)`

#### public abstract [Set](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Set.html)\<[PosixFilePermission](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/attribute/PosixFilePermission.html)\>
**permissions**
()

Returns the permissions of the file. The file permissions are returned
as a set of `https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/attribute/PosixFilePermission.html` 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 `https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/attribute/PosixFileAttributeView.html#setPermissions(java.util.Set<java.nio.file.attribute.PosixFilePermission>)` method to update the file's permissions.

##### Returns

- the file permissions

##### See Also

- `https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/attribute/PosixFileAttributeView.html#setPermissions(java.util.Set<java.nio.file.attribute.PosixFilePermission>)`