class SF::Ftp::ListingResponse
- SF::Ftp::ListingResponse
- SF::Ftp::Response
- Reference
- Object
Overview
Specialization of FTP response returning a filename listing
Defined in:
network/obj.crConstructors
-
.new(response : Ftp::Response, data : String)
Default constructor
Instance Method Summary
-
#dup : ListingResponse
Returns a shallow copy of this object.
- #finalize
-
#listing : Array(String)
Return the array of directory/file names
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
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.
def listing : Array(String)
#
Return the array of directory/file names
Returns: Array containing the requested listing