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