class Net::SFTP::Protocol::V01::Name
for use when displaying directory data, and has no specified format.
name, attributes about the item, and the “longname”, which is intended
Represents a single named item on the remote server. This includes the
def directory?
examining the attributes. If there is insufficient information in the
Returns +true+ if the item appears to be a directory. It does this by
def directory? attributes.directory? end
def file?
examining the attributes. If there is insufficient information in the
Returns +true+ if the item appears to be a regular file. It does this by
def file? attributes.file? end
def initialize(name, longname, attributes)
def initialize(name, longname, attributes) @name, @longname, @attributes = name, longname, attributes end
def symlink?
examining the attributes. If there is insufficient information in the
Returns +true+ if the item appears to be a symlink. It does this by
def symlink? attributes.symlink? end