public interface PathDetails
Path
along with its metadata.
The information is accurate as of the time of the entry is
created; the same calls at a future point in time on the
associated path using the same FileClient
may return a
different value.
Because details can only be reported on existing file system objects, it is safe to assume the associated path existed at the time of the call.
Modifier and Type | Method and Description |
---|---|
long |
getLength()
Returns the length of the file represented by the associated path.
|
Path |
getPath()
Gets the path associated with the metadata.
|
boolean |
isDirectory()
Indicates whether the associated path represents a directory.
|
boolean |
isFile()
Indicates whether the associated path represents a file.
|
boolean |
isHidden()
Indicates whether the associated path is hidden by the file system.
|
boolean |
isReadable()
Indicates whether the associated path can be read.
|
boolean |
isWritable()
Indicates whether the associated path can be written.
|
Path getPath()
boolean isReadable()
true
the path represents a readable
file or directory, false
otherwise.FileClient.isReadable(Path)
boolean isWritable()
true
the path represents a writable
file or directory, false
otherwise.FileClient.isWritable(Path)
boolean isFile()
true
the path represents a file,
false
otherwise.FileClient.isFile(Path)
boolean isDirectory()
true
the path represents a directory,
false
otherwise.FileClient.isDirectory(Path)
long getLength()
FileClient.getLength(Path)
boolean isHidden()
true
if the path is hidden,
false
otherwise.FileClient.isHidden(Path)
Copyright © 2016 Actian Corporation. All rights reserved.