class SF::Ftp::DirectoryResponse

Overview

Specialization of FTP response returning a directory

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) #

Default constructor

  • response - Source response

[View source]

Instance Method Detail

def directory : String #

Get the directory returned in the response

Returns: Directory name


[View source]
def dup : DirectoryResponse #
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]