lib/net/sftp/protocol/01/attributes.rb
# Returns true if these attributes appear to describe a directory.
Returns true if these attributes appear to describe a directory.
Returns true if these attributes appear to describe a directory .
def directory?
      case type
      when T_DIRECTORY then true
      when T_UNKNOWN   then nil
      else false
      end
    end
def directory? case type when T_DIRECTORY then true when T_UNKNOWN then nil else false end end
Returns true if these attributes appear to describe a directory.
Returns true if these attributes appear to describe a directory .