Class FTP::DirectoryResponse#

Nested Relationships#

This class is a nested type of Class FTP.

Inheritance Relationships#

Base Type#

Class Documentation#

class DirectoryResponse : public TRAP::Network::FTP::Response

Specialization of FTP response returning a directory.

Public Functions

explicit DirectoryResponse(const Response &response)

Constructor.

Parameters:

response – Source response.

DirectoryResponse(const DirectoryResponse&) = default

Copy constructor.

DirectoryResponse &operator=(const DirectoryResponse&) = default

Copy assignment operator.

DirectoryResponse(DirectoryResponse&&) noexcept = default

Move constructor.

DirectoryResponse &operator=(DirectoryResponse&&) noexcept = default

Move assignment operator.

~DirectoryResponse() = default

Destructor.

const std::filesystem::path &GetDirectory() const noexcept

Get the directory returned in the response.

Returns:

Directory name.