SFML
Simple and Fast Multimedia Library
Loading...
Searching...
No Matches
sf::Ftp::DirectoryResponse Class Reference

Specialization of FTP response returning a directory. More...

#include <Ftp.hpp>

Inheritance diagram for sf::Ftp::DirectoryResponse:
[legend]

Public Member Functions

 DirectoryResponse (const Response &response)
 Default constructor.
const std::filesystem::path & getDirectory () const
 Get the directory returned in the response.
Public Member Functions inherited from sf::Ftp::Response
 Response (Status code=Status::InvalidResponse, std::string message="")
 Default constructor.
bool isOk () const
 Check if the status code means a success.
Status getStatus () const
 Get the status code of the response.
const std::string & getMessage () const
 Get the full message contained in the response.

Additional Inherited Members

Public Types inherited from sf::Ftp::Response
enum class  Status {
  RestartMarkerReply = 110 , ServiceReadySoon = 120 , DataConnectionAlreadyOpened = 125 , OpeningDataConnection = 150 ,
  Ok = 200 , PointlessCommand = 202 , SystemStatus = 211 , DirectoryStatus = 212 ,
  FileStatus = 213 , HelpMessage = 214 , SystemType = 215 , ServiceReady = 220 ,
  ClosingConnection = 221 , DataConnectionOpened = 225 , ClosingDataConnection = 226 , EnteringPassiveMode = 227 ,
  LoggedIn = 230 , FileActionOk = 250 , DirectoryOk = 257 , NeedPassword = 331 ,
  NeedAccountToLogIn = 332 , NeedInformation = 350 , ServiceUnavailable = 421 , DataConnectionUnavailable = 425 ,
  TransferAborted = 426 , FileActionAborted = 450 , LocalError = 451 , InsufficientStorageSpace = 452 ,
  CommandUnknown = 500 , ParametersUnknown = 501 , CommandNotImplemented = 502 , BadCommandSequence = 503 ,
  ParameterNotImplemented = 504 , NotLoggedIn = 530 , NeedAccountToStore = 532 , FileUnavailable = 550 ,
  PageTypeUnknown = 551 , NotEnoughMemory = 552 , FilenameNotAllowed = 553 , InvalidResponse = 1000 ,
  ConnectionFailed = 1001 , ConnectionClosed = 1002 , InvalidFile = 1003
}
 Status codes possibly returned by a FTP response. More...

Detailed Description

Specialization of FTP response returning a directory.

Constructor & Destructor Documentation

◆ DirectoryResponse()

sf::Ftp::DirectoryResponse::DirectoryResponse ( const Response & response)

Default constructor.

Parameters
responseSource response

Member Function Documentation

◆ getDirectory()

const std::filesystem::path & sf::Ftp::DirectoryResponse::getDirectory ( ) const
nodiscard

Get the directory returned in the response.

Returns
Directory name

The documentation for this class was generated from the following file: