public final class DropBoxFileAttributes
extends com.github.fge.filesystem.attrs.BasicFileAttributesBase
BasicFileAttributes implementation for DropBox
Note: DropBox has poor support for file times; as required by the BasicFileAttributes contract, all methods returning a FileTime for
which there is no support will return Unix's epoch (that is, Jan 1st, 1970
at 00:00:00 GMT).
| Constructor and Description |
|---|
DropBoxFileAttributes(DbxEntry entry) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isDirectory()
Tells whether the file is a directory.
|
boolean |
isRegularFile()
Tells whether the file is a regular file with opaque content.
|
FileTime |
lastModifiedTime()
Returns the time of last modification.
|
long |
size()
Returns the size of the file (in bytes).
|
public FileTime lastModifiedTime()
If the file system implementation does not support a time stamp
to indicate the time of last modification then this method returns an
implementation specific default value, typically a FileTime
representing the epoch (1970-01-01T00:00:00Z).
lastModifiedTime in interface BasicFileAttributeslastModifiedTime in class com.github.fge.filesystem.attrs.BasicFileAttributesBaseFileTime representing the time the file was last
modifiedpublic boolean isRegularFile()
public boolean isDirectory()
public long size()
regular files is implementation specific and
therefore unspecified.