Changes to a different working directory on the FTP server.
WebAPI.bdh
WebFtpSetCurrentDirectory( 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 change to on the remote system. This can be either a fully qualified path or a name relative to the current directory. |
// Set the current directory on the FTP server. dcltrans transaction TWebFtpDir var hFtp: number; begin WebFtpConnect(hFtp, "standardhost", WEB_PORT_FTP, "anonymous", "mymail@address.com"); WebFtpSetCurrentDirectory(hFtp, "/"); WebFtpShutdown(hFtp); end TWebFtpDir;
WebMulti01.bdf
Ftp.sep