public interface PosixFileAttributes extends BasicFileAttributes
使用PosixFileAttributeView
通过调用其readAttributes
方法来检索文件的POSIX属性。
Modifier and Type | Method and Description |
---|---|
GroupPrincipal |
group()
返回该文件的组所有者。
|
UserPrincipal |
owner()
返回文件的所有者。
|
Set<PosixFilePermission> |
permissions()
返回文件的权限。
|
creationTime, fileKey, isDirectory, isOther, isRegularFile, isSymbolicLink, lastAccessTime, lastModifiedTime, size
UserPrincipal owner()
GroupPrincipal group()
Set<PosixFilePermission> permissions()
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.