BTVisualFTP 3.0
|
Provides a wrapper for the FTP connection. More...
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 |
Provides a wrapper for the FTP connection.
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.
Referenced by Connect().
Boolean TFtpConnection::Connect | ( | const string | RemoteDir | ) |
Connect to FTP server.
RemoteDir | The name of the initial remote directory. |
References Abort(), Connected(), CreateDirectory(), DeleteFile(), Disconnect(), TLogger::Error(), GetCurrentDirectory(), GetFile(), IdFTP, TLogger::Info(), Logger, PutFile(), RemoveDirectory(), RenameFile(), 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. |
Referenced by Connect().
Boolean TFtpConnection::DeleteFile | ( | const string | Filename | ) |
Delete a file on the FTP server.
Filename | The name of the file. |
Referenced by Connect().
string TFtpConnection::GetCurrentDirectory | ( | ) |
Get the current directory on the FTP server.
Referenced by Connect().
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 |
Referenced by Connect().
Boolean TFtpConnection::PutFile | ( | const string | LocalFile, |
const string | RemoteFile | ||
) |
Transfer a local file to the FTP server.
LocalFile | local filename. |
RemoteFile | remote filename. |
Referenced by Connect().
Boolean TFtpConnection::RemoveDirectory | ( | const string | Filename | ) |
Remove a directory on the FTP server.
Filename | Name of the file to be deleted. |
Referenced by Connect().
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. |
Referenced by Connect().
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.
Referenced by Connect(), and Connected().
Boolean TFtpConnection::UsingUtf8 [protected] |
Referenced by Connect().