SetFTPDirectory()
Syntax
Result = SetFTPDirectory(#Ftp, Directory$)Description
Change the current #Ftp directory, relative to the current directory. If the directory couldn't be changed, 'Result' will be 0.
To get the current directory, use GetFTPDirectory(). Subpath are not supported, only immediate directory change are allowed: to change to several level of directory, this command will have to be called several time.Example:
InitNetwork() If OpenFTP(0, "ftp.free.fr", "anonymous", "") Debug "Successfully connected" If SetFTPDirectory(0, "pub") If SetFTPDirectory(0, "linux") Debug "Cool, changed to '/pub/linux'" Debug GetFTPDirectory(0) Else Debug "Can't change to '/pub/linux'" EndIf Else Debug "Can't change to 'pub'" EndIf Else Debug "Can't connect to ftp.free.fr" EndIf
Supported OS
All