|
Ganymed SSH-2 for Java | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ch.ethz.ssh2.SFTPv3FileAttributes
public class SFTPv3FileAttributes
A SFTPv3FileAttributes
object represents detail information
about a file on the server. Not all fields may/must be present.
Field Summary | |
---|---|
java.lang.Integer |
atime
The ATIME attribute. |
java.lang.Integer |
gid
The GID attribute. |
java.lang.Integer |
mtime
The MTIME attribute. |
java.lang.Integer |
permissions
The POSIX permissions. |
java.lang.Long |
size
The SIZE attribute. |
java.lang.Integer |
uid
The UID attribute. |
Constructor Summary | |
---|---|
SFTPv3FileAttributes()
|
Method Summary | |
---|---|
java.lang.String |
getOctalPermissions()
Turn the POSIX permissions into a 7 digit octal representation. |
boolean |
isDirectory()
Checks if this entry is a directory. |
boolean |
isRegularFile()
Checks if this entry is a regular file. |
boolean |
isSymlink()
Checks if this entry is a a symlink. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public java.lang.Long size
NULL
if not present.
public java.lang.Integer uid
NULL
if not present.
public java.lang.Integer gid
NULL
if not present.
public java.lang.Integer permissions
NULL
if not present.
Here is a list:
Note: these numbers are all OCTAL. S_IFMT 0170000 bitmask for the file type bitfields S_IFSOCK 0140000 socket S_IFLNK 0120000 symbolic link S_IFREG 0100000 regular file S_IFBLK 0060000 block device S_IFDIR 0040000 directory S_IFCHR 0020000 character device S_IFIFO 0010000 fifo S_ISUID 0004000 set UID bit S_ISGID 0002000 set GID bit S_ISVTX 0001000 sticky bit S_IRWXU 00700 mask for file owner permissions S_IRUSR 00400 owner has read permission S_IWUSR 00200 owner has write permission S_IXUSR 00100 owner has execute permission S_IRWXG 00070 mask for group permissions S_IRGRP 00040 group has read permission S_IWGRP 00020 group has write permission S_IXGRP 00010 group has execute permission S_IRWXO 00007 mask for permissions for others (not in group) S_IROTH 00004 others have read permission S_IWOTH 00002 others have write permisson S_IXOTH 00001 others have execute permission
public java.lang.Integer atime
NULL
if not present.
public java.lang.Integer mtime
NULL
if not present.
Constructor Detail |
---|
public SFTPv3FileAttributes()
Method Detail |
---|
public boolean isDirectory()
public boolean isRegularFile()
public boolean isSymlink()
public java.lang.String getOctalPermissions()
0177777
.
NULL
if permissions are not available.
|
Ganymed SSH-2 for Java | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |