|
Public Types |
enum | TransferMode {
Binary,
Ascii,
Ebcdic
} |
| Enumeration of transfer modes. More...
|
Public Member Functions |
| sfFTP (Listener *FTPListener=NULL) |
| Default constructor.
|
| ~sfFTP () |
| Destructor.
|
bool | Connect (const sfIPAddress &Server, unsigned short Port=21) |
| Connect to the specified FTP server.
|
bool | Login (const std::string &UserName, const std::string &Password) |
| Log in using a username and a password.
|
bool | Disconnect () |
| Close the connection with FTP server.
|
bool | KeepAlive () |
| Send a null command just to prevent from being disconnected.
|
bool | GetWorkingDirectory (std::string &Directory) |
| Get the current working directory.
|
bool | GetDirectoryListing (std::vector< std::string > &Listing, const std::string &Directory="") |
| Get the contents of the given directory (subdirectories and files).
|
bool | ChangeDirectory (const std::string &Directory) |
| Change the current working directory.
|
bool | ParentDirectory () |
| Go to the parent directory of the current one.
|
bool | MakeDirectory (const std::string &Name) |
| Create a new directory.
|
bool | DeleteDirectory (const std::string &Name) |
| Remove an existing directory.
|
bool | RenameFile (const std::string &File, const std::string &NewName) |
| Rename a file.
|
bool | RemoveFile (const std::string &Name) |
| Remove an existing file.
|
bool | Download (const std::string &DistantFile, const std::string &DestPath, TransferMode Mode=Binary) |
| Download a file from the server.
|
bool | Upload (const std::string &LocalFile, const std::string &DestPath, TransferMode Mode=Binary) |
| Upload a file to the server.
|
Friends |
class | DataChannel |
Classes |
class | DataChannel |
| Utility class for exchanging datas with the server on the data channel.
|
class | Listener |
| Base class for FTP listeners -- inherits from it if you want to get the FTP server responses. More...
|