Removes the specified directory on the FTP server.
WebAPI.bdh
WebFtpRemoveDirectory( in hFtp : number, in sDirectory : string ) : boolean;
true if successful
false otherwise
Parameter | Description |
---|---|
hFtp | Valid handle to an FTP session. This handle must have been returned from a previous call to WebFtpConnect. |
sDirectory | String that contains the name of the directory to remove on the remote system. This can be either a fully qualified path or a name relative to the current directory. |
// Create and remove a directory on the FTP server. dcltrans transaction TWebFtpDir var hFtp: number; begin WebFtpConnect(hFtp, "standardhost", WEB_PORT_FTP, "anonymous", "mymail@address.com"); WebFtpCreateDirectory(hFtp, "/test_directory"); WebFtpRemoveDirectory(hFtp, "/test_directory"); WebFtpShutdown(hFtp); end TWebFtpDir;
WebMulti01.bdf
Ftp.sep