SmartFTP FTP Library
IFTPConnection Methods

The methods of the IFTPConnection class are listed here.

Public Methods
Public Method 
Description 
Aborts the current operation. 
Changes the current/working directory on the server. 
Sends the CDUP command to the server to go up one directory. 
Clears the command channel by sending a CCC command. If the CCC server reply is successful the control connection continues in non-secure mode. 
Closes the connection.
To ungracefully close the connection use the Disconnect method. 
Sends the specified command to the server. 
Connects to remote host. Remarks 
Continues a pending operation.
This method can resume an operation which returned with FTPLIB_E_PAUSED or FTPLIB_E_MOREDATA. 
This is CopyFile, a member of class IFTPConnection. 
This is CreateStreamForRead, a member of class IFTPConnection. 
This is CreateStreamForWrite, a member of class IFTPConnection. 
Deletes a file from the server. 
Disconnects from the remote host.
To ungracefully close the connection use the Close method. 
This is Download, a member of class IFTPConnection. 
Downloads a file. 
Uploads the specified local file to the specified remote file. 
FXP downloads a specified remote file. 
FXP uploads a specified remote file. 
Retrieves the hash value of a file or portion specified with nStart and nLen. 
Retrieves the size of a specified file. 
This is GetFileSize32, a member of class IFTPConnection. 
Retrieves the machine list of the specified file. 
Retrieves the last modified time of a specified file. 
This is GetModifyTimeAsDate, a member of class IFTPConnection. 
This is GetSpaceAvailable, a member of class IFTPConnection. 
Initializes a data transfer. 
Makes/Creates a new directory.
The clients sends a MKD command to create a new directory on the server. 
Creates a new empty file.
The clients sends the STOR command to create a new empty file on the server. 
Reads the content of the current working directory.
The result is stored in the Items property. 
This is ReadDirectoryEx, a member of class IFTPConnection. 
Reads the content of the current working directory. 
Reads the content of the current working directory and saves it into the specified local file. 
Removes the specified directory.
The client sends a RMD command to remove the directory. Due to the nature of FTP the directory is not removed if it's not empty. 
Renames the specified directory.
The client sends RNFR to initiate a rename and completes it with RNTO. 
Renames a file.
The client sends RNFR to initiate a rename and completes it with RNTO. 
Sets the creation time of the file. 
This is SetCreateTimeAsDate, a member of class IFTPConnection. 
This is SetFileLogger, a member of class IFTPConnection. 
Sets the last modified time of the file. 
This is SetModifyTimeAsDate, a member of class IFTPConnection. 
Sets the unix mode of a remote file or folder.
The client sends a SITE CHMOD command. If the FTP command is not supported the function fails. 
Stat 
Sends STAT command to retrieve statistics or file listing. 
Updates the WorkingDirectory property by sending a PWD command to the server. 
Uploads a specified local file to a specified remote file. 
Uploads the specified local file to a specified remote file. 
What do you think about this topic? Send feedback!
Copyright (c) by SmartSoft Ltd. All rights reserved.