Creates a new directory on the FTP server.
WebAPI.bdh
WebFtpCreateDirectory( 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 create on the remote system. This can be either a fully qualified path or a name relative to the current directory. |
// Create 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"); WebFtpShutdown(hFtp); end TWebFtpDir;
WebMulti01.bdf
Ftp.sep