| Modifier and Type | Field and Description |
|---|---|
| private final SftpClient. | |
| private final Path |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public FileTime | creationTime()
Implements java. Returns the creation time. |
| public Object | fileKey()
Implements java. Returns an object that uniquely identifies the given file, or |
| public final Path | |
| public GroupPrincipal | group()
Implements java. Returns the group owner of the file. |
| public boolean | isDirectory()
Implements java. Tells whether the file is a directory. |
| public boolean | isOther()
Implements java. Tells whether the file is something other than a regular file, directory, or symbolic link. |
| public boolean | isRegularFile()
Implements java. Tells whether the file is a regular file with opaque content. |
| public boolean | isSymbolicLink()
Implements java. Tells whether the file is a symbolic link. |
| public FileTime | lastAccessTime()
Implements java. Returns the time of last access. |
| public FileTime | lastModifiedTime()
Implements java. Returns the time of last modification. |
| public UserPrincipal | |
| public Set | permissions()
Implements java. Returns the permissions of the file. |
| public long | size()
Implements java. Returns the size of the file (in bytes). |
| attributes | back to summary |
|---|---|
| private final SftpClient. | |
| path | back to summary |
|---|---|
| private final Path path | |
| SftpPosixFileAttributes | back to summary |
|---|---|
| public SftpPosixFileAttributes(Path path, SftpClient. | |
| creationTime | back to summary |
|---|---|
| public FileTime creationTime() Implements java. Doc from java. Returns the creation time. The creation time is the time that the file was created. If the file system implementation does not support a time stamp
to indicate the time when the file was created then this method returns
an implementation specific default value, typically the | |
| fileKey | back to summary |
|---|---|
| public Object fileKey() Implements java. Doc from java. Returns an object that uniquely identifies the given file, or The file key returned by this method can only be guaranteed to be unique if the file system and files remain static. Whether a file system re-uses identifiers after a file is deleted is implementation dependent and therefore unspecified. File keys returned by this method can be compared for equality and are
suitable for use in collections. If the file system and files remain static,
and two files are the | |
| getPath | back to summary |
|---|---|
| public final Path getPath() | |
| group | back to summary |
|---|---|
| public GroupPrincipal group() Implements java. Doc from java. Returns the group owner of the file.
| |
| isDirectory | back to summary |
|---|---|
| public boolean isDirectory() Implements java. Doc from java. Tells whether the file is a directory.
| |
| isOther | back to summary |
|---|---|
| public boolean isOther() Implements java. Doc from java. Tells whether the file is something other than a regular file, directory, or symbolic link.
| |
| isRegularFile | back to summary |
|---|---|
| public boolean isRegularFile() Implements java. Doc from java. Tells whether the file is a regular file with opaque content.
| |
| isSymbolicLink | back to summary |
|---|---|
| public boolean isSymbolicLink() Implements java. Doc from java. Tells whether the file is a symbolic link.
| |
| lastAccessTime | back to summary |
|---|---|
| public FileTime lastAccessTime() Implements java. Doc from java. Returns the time of last access. If the file system implementation does not support a time stamp
to indicate the time of last access then this method returns
an implementation specific default value, typically the | |
| lastModifiedTime | back to summary |
|---|---|
| public FileTime lastModifiedTime() Implements java. Doc from java. Returns the time of last modification. 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 | |
| owner | back to summary |
|---|---|
| public UserPrincipal owner() Implements java. Doc from java. Returns the owner of the file.
| |
| permissions | back to summary |
|---|---|
| public Set Implements java. Doc from java. Returns the permissions of the file. The file permissions are returned
as a set of
| |
| size | back to summary |
|---|---|
| public long size() Implements java. Doc from java. Returns the size of the file (in bytes). The size may differ from the
actual size on the file system due to compression, support for sparse
files, or other reasons. The size of files that are not
| |