class SF::Ftp::ListingResponse

Overview

Specialization of FTP response returning a filename listing

Defined in:

network/obj.cr

Constructors

Instance Method Summary

Instance methods inherited from class SF::Ftp::Response

dup : Response dup, finalize finalize, message : String message, ok? : Bool ok?, status : Ftp::Response::Status status

Constructor methods inherited from class SF::Ftp::Response

new(code : Ftp::Response::Status = InvalidResponse, message : String = "") new

Constructor Detail

def self.new(response : Ftp::Response, data : String) #

Default constructor

  • response - Source response
  • data - Data containing the raw listing

[View source]

Instance Method Detail

def dup : ListingResponse #
Description copied from class Reference

Returns a shallow copy of this object.

This allocates a new object and copies the contents of self into it.


[View source]
def finalize #

[View source]
def listing : Array(String) #

Return the array of directory/file names

Returns: Array containing the requested listing


[View source]