FTPMkDir
FTP function.
The FTPMkDir function creates a folder on the FTP server.
Syntax
FTPMkDir(<FTP_foldername>)
or
ret=FTPMkDir(<FTP_foldername>)Parameter
<FTP_foldername> : string, name of the new folder to create on the already connected FTP server.
Return value
Ret, numeric return code. The return code is 0 when the new folder has been successfully created. The non zero possible error codes for FTP errors are listed in FTP functions error codes topic. During #FTPTimeout seconds, the function tries to create the new folder and after this timeout, the standard error management is used.
See also
Example
FtpConnect("www.wintask.com","ftp","MX/WH05CZE3h") ' connection to the FTP server www.wintask.com (fake credentials!)
FtpMkDir("/upgrades/todelete") ' creates the subfolder todelete under the upgrades folder
FtpChDir("/upgrades/todelete") ' change the current folder to /upgrades/todelete
FtpCurrentDir(var$) ' var$ contains /upgrades/todelete
FtpDisconnect() ' Terminates the FTP connection