SFTPFileAttributes Type
A set of attributes for a file existing on an SFTP server..
Remarks
This type describes a file residing on an SFTP server.
Fields
AccessTime long |
The number of milliseconds since 12:00:00 AM January 1, 1970 when this file was last accessed. | ||||||||||||||||||||||||||||||||
AccessTimeNanos int |
A subsecond value associated with this file's AccessTime. | ||||||||||||||||||||||||||||||||
ACL String |
A string containing an Access Control List (ACL). | ||||||||||||||||||||||||||||||||
AllocationSize long |
The size, in bytes, that this file consumes on disk. | ||||||||||||||||||||||||||||||||
AttributeBits int |
AttributeBits and AttributeBitsValid each contain a bitmask representing attributes of the file on the SFTP server. These two values must be interpreted together. Any value present in AttributeBitsValid must be ignored in AttributeBits. This is done so that the server and client can communicate the attributes they know about without confusing any bits they do not understand. This field can have one or more of the following values OR'd together:
| ||||||||||||||||||||||||||||||||
AttributeBitsValid int |
AttributeBits and AttributeBitsValid each contain a bitmask representing attributes of the file on the SFTP server. These two values must be interpreted together. Any value present in AttributeBitsValid must be ignored in AttributeBits. This is done so that the server and client can communicate the attributes they know about without confusing any bits they do not understand. This field can have one or more of the following values OR'd together:
| ||||||||||||||||||||||||||||||||
CreationTime long |
The number of milliseconds since 12:00:00 AM January 1, 1970 when this file was created. | ||||||||||||||||||||||||||||||||
CreationTimeNanos int |
A subsecond value associated with this file's CreationTime. | ||||||||||||||||||||||||||||||||
FileType int |
The type of file. FileType may be one of the following values:
| ||||||||||||||||||||||||||||||||
Flags int |
Flags is an integer containing a bitmask that indicates which fields are valid. When retrieving file attributes from an SFTP server, this field indicates which values were read by the bean. When setting values, the field is used to determine which values get passed to the server. Flags may be bitwise-ORed with any of the following values:
| ||||||||||||||||||||||||||||||||
GroupId String |
The id of the group that has access rights this file. | ||||||||||||||||||||||||||||||||
IsDir boolean |
Whether or not the file represented by these attributes is a directory. | ||||||||||||||||||||||||||||||||
LinkCount int |
The number of links that reference this file. | ||||||||||||||||||||||||||||||||
MIMEType String |
A value that can be used in the Content-Type header for a MIME entity part containing this file. | ||||||||||||||||||||||||||||||||
ModifiedTime long |
The number of milliseconds since 12:00:00 AM January 1, 1970 that this file was last modified. | ||||||||||||||||||||||||||||||||
ModifiedTimeNanos int |
A subsecond value associated with this file's ModifiedTime. | ||||||||||||||||||||||||||||||||
OwnerId String |
The user id of this file's owner. | ||||||||||||||||||||||||||||||||
Permissions int |
A 32-bit integer containing the a POSIX-compatible file permission bitmask. The bitmask should be interpreted as a decimal value of a series of octal digits. For example, a octal permission value of "100644" would be "33188" in base-10, and "40755" in octal would be "16877" in base-10. The last three octal digits are the most significant and represent, in order, the file access capabilities of the file's owner, the owner's group and other users. Each of these octal digits is, on its own, a 3-bit bitmask with the following possible values:
An octal permission digit of 7 would have all three values set and would mean that the file can be read, written and executed by that user class. For example, the octal permissions "100644" would have a value "6" for the owner, "4" for the group, and "4" for other users. This would be interpreted to mean that all users can read the file, no users can execute it and only the owner can write it. The permissions "40755" would mean that all users can read and execute the file, but only the owner can write it. The previous octal digit is another bitmask with the following values:
The previous two octal digits are used together as a bitmask to determine the type of file. This bitmask has the following values:
For example, the octal file permissions "100644" would indicate a regular file and octal "40755" would indicate a directory. Please note that you will need to convert the octal permissions bitmask into its decimal representation | ||||||||||||||||||||||||||||||||
Size long |
The total size, in bytes, of this file. | ||||||||||||||||||||||||||||||||
TextHint int |
Provides a hint for whether or not the file is a text file. | ||||||||||||||||||||||||||||||||
UntranslatedName String |
The untranslated name of the file. |
Constructors