class Net::SFTP::Protocol::V06::Attributes

A class representing the attributes of a file or directory on the server. It may be used to specify new attributes, or to query existing attributes. This particular class is specific to versions 6 and higher of the SFTP protocol.

To specify new attributes, just pass a hash as the argument to the constructor. The following keys are supported:

Likewise, when the server sends an Attributes object, all of the above attributes are exposed as methods (though not all will be set with non-nil values from the server).

Constants

F_ALLOCATION_SIZE
F_BITS
F_CTIME
F_MIME_TYPE
F_TEXT_HINT
F_UNTRANSLATED_NAME

Attributes

allocation_size[RW]

The size on-disk of the file

attrib_bits[RW]

Other attributes of this file or directory (as a bit field)

attrib_bits_valid[RW]

A bit mask describing which bits in attrib_bits are valid

ctime[RW]

The time at which the file's attributes were last changed

ctime_nseconds[RW]

The nanosecond component of ctime

mime_type[RW]

The mime-type of the file

text_hint[RW]

Describes whether the file may or may not contain textual data

untranslated_name[RW]

The value of the file name before filename translation was attempted