Class FTP::ListingResponse#

Nested Relationships#

This class is a nested type of Class FTP.

Inheritance Relationships#

Base Type#

Class Documentation#

class ListingResponse : public TRAP::Network::FTP::Response

Specialization of FTP response returning a filename listing.

Public Functions

constexpr ListingResponse(const Response &response, std::string_view data)

Constructor.

Parameters:
  • response – Source response.

  • data – Data containing the raw listing.

ListingResponse(const ListingResponse&) = default

Copy constructor.

ListingResponse &operator=(const ListingResponse&) = default

Copy assignment operator.

ListingResponse(ListingResponse&&) noexcept = default

Move constructor.

ListingResponse &operator=(ListingResponse&&) noexcept = default

Move assignment operator.

~ListingResponse() = default

Destructor.

constexpr const std::vector<std::filesystem::path> &GetListing() const noexcept

Return the array of directory/file names.

Returns:

Array containing the requested listing.