public interface FileAttributes
Modifier and Type | Method and Description |
---|---|
long |
creationTime()
Get the creation time for this file.
|
java.lang.String |
group()
Get the group of this file.
|
boolean |
isDirectory()
Does the path refer to a directory ?
|
boolean |
isExecutable()
Does the path refer to an executable file ?
|
boolean |
isHidden()
Does the path refer to an hidden file ?
|
boolean |
isOther()
Is the path not a file, link or directory ?
|
boolean |
isReadable()
Does the path refer to an readable file ?
|
boolean |
isRegularFile()
Does the path refer to a regular file ?
|
boolean |
isSymbolicLink()
Does the path refer to a symbolic link ?
|
boolean |
isWritable()
Does the path refer to a writable file ?
|
long |
lastAccessTime()
Get the last access time for this file.
|
long |
lastModifiedTime()
Get the last modified time for this file.
|
java.lang.String |
owner()
Get the owner of this file.
|
java.util.Set<PosixFilePermission> |
permissions()
Get the permissions of this file.
|
long |
size()
Get the size of this file.
|
boolean isDirectory()
boolean isOther()
boolean isRegularFile()
boolean isSymbolicLink()
long creationTime()
lastModifiedTime()
will be returned instead.long lastAccessTime()
lastModifiedTime()
will be returned instead.long lastModifiedTime()
0
will be returned instead.long size()
0
will be returned.boolean isExecutable()
boolean isHidden()
boolean isReadable()
boolean isWritable()
java.lang.String group() throws AttributeNotSupportedException
AttributeNotSupportedException
- If the attribute is not supported by the adaptor.java.lang.String owner() throws AttributeNotSupportedException
AttributeNotSupportedException
- If the attribute is not supported by the adaptor.java.util.Set<PosixFilePermission> permissions() throws AttributeNotSupportedException
AttributeNotSupportedException
- If the attribute is not supported by the adaptor.