Public Member Functions | |
| Abort () | |
| Cancel the current transfer. | |
| Boolean | Connect (const string RemoteDir) |
| Connect to FTP server. | |
| Boolean | Connected () |
| Check if a connection is open. | |
| Boolean | SupportsVerification () |
| Indicates if the FTP server supports one of the extensibility features for verified transfer integrity. | |
| Boolean | PutFile (const string LocalFile, const string RemoteFile) |
| Transfer a local file to the FTP server. | |
| Boolean | GetFile (const string RemoteFile, const string LocalFile, const Integer RemoteFilesize) |
| Transfer a file from the FTP server to the local system. | |
| Boolean | SetCurrentDirectory (const string RemoteDir) |
| Set the current directory on the FTP server. | |
| string | GetCurrentDirectory () |
| Get the current directory on the FTP server. | |
| Boolean | DeleteFile (const string Filename) |
| Delete a file on the FTP server. | |
| Boolean | CreateDirectory (const string DirName) |
| Create a directory on the FTP server. | |
| Boolean | RemoveDirectory (const string Filename) |
| Remove a directory on the FTP server. | |
| Boolean | RenameFile (const string OldFile, const string Newfile) |
| Rename a file on the FTP server. | |
| ShowLastResponseInfo () | |
| Display FTP server error message. | |
| Disconnect () | |
| Disconnect from the FTP server. | |
Public Attributes | |
| TIdFTP | IdFTP |
| The Indy FTP client component. | |
| TLogger | Logger |
| The logger object. | |
Protected Attributes | |
| Boolean | UsingUtf8 |
| TFtpConnection::Abort | ( | ) |
Cancel the current transfer.
Abort is a procedure that instructs the FTP server to interrupt the previous FTP service command, and any associated transfer of data. Abort does not affect the control connection for the FTP client, but forces the data connection to be closed.
| Boolean TFtpConnection::Connect | ( | const string | RemoteDir | ) |
Connect to FTP server.
| RemoteDir | The name of the initial remote directory. |
References Connected(), TLogger::Error(), IdFTP, TLogger::Info(), Logger, SetCurrentDirectory(), ShowLastResponseInfo(), SupportsVerification(), UsingUtf8, and TLogger::Warn().
| TFtpConnection::Connected | ( | ) |
| Boolean TFtpConnection::CreateDirectory | ( | const string | DirName | ) |
Create a directory on the FTP server.
| DirName | Name of the new directory. |
| Boolean TFtpConnection::DeleteFile | ( | const string | Filename | ) |
Delete a file on the FTP server.
| Filename | The name of the file. |
| string TFtpConnection::GetCurrentDirectory | ( | ) |
Get the current directory on the FTP server.
| Boolean TFtpConnection::GetFile | ( | const string | RemoteFile, | |
| const string | LocalFile, | |||
| const Integer | RemoteFilesize | |||
| ) |
Transfer a file from the FTP server to the local system.
| RemoteFile | ||
| LocalFile | ||
| RemoteFilesize |
| Boolean TFtpConnection::PutFile | ( | const string | LocalFile, | |
| const string | RemoteFile | |||
| ) |
Transfer a local file to the FTP server.
| LocalFile | local filename. | |
| RemoteFile | remote filename. |
| Boolean TFtpConnection::RemoveDirectory | ( | const string | Filename | ) |
Remove a directory on the FTP server.
| Filename | Name of the file to be deleted. |
| Boolean TFtpConnection::RenameFile | ( | const string | OldFile, | |
| const string | Newfile | |||
| ) |
Rename a file on the FTP server.
| OldFile | Name of the file to be renamed. | |
| Newfile | New file name. |
| Boolean TFtpConnection::SetCurrentDirectory | ( | const string | RemoteDir | ) |
Set the current directory on the FTP server.
| RemoteDir | The name of the directory. |
Referenced by Connect().
| Boolean TFtpConnection::SupportsVerification | ( | ) |
Indicates if the FTP server supports one of the extensibility features for verified transfer integrity.
Referenced by Connect().
The Indy FTP client component.
SetIdFTP For writing
Referenced by Connect(), and Connected().
Boolean TFtpConnection::UsingUtf8 [protected] |
- Project hosted on