class Net::SFTP::Protocol::V01::Name

def file?

attributes, this will return nil, rather than a boolean.
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