FTPChangeFolder Action

Change the current folder location on the FTP Server.

ALERT!

Other FTP actions such as FTPDownload, FTPUpload and the FTPNew* functions perform their actions relative to the 'current folder location' on the FTP Server. Therefore calling FTPChangeFolder will affect the outcome of these actions.

Parameters

Connection – (Required)

Name of the connection that the action will be applied to. Should be the same name as specified in the FTPConnect call.

Path – (Required)

New folder path. This path is relative to the 'Current folder location'.

Examples

The following example creates an FTP connection to the IBMi, changes the folder on the server, uploads a file and disconnects. The example assumes that there is a previously defined ftp connection 'iSeriesFTP'.

FTPConnect (testConnection, Connection=iSeriesFTP;)

FTPChangeFolder (testConnection, /tmp)

FTPUpload (testConnection, test, ZZVAS.SAVF, /tmp/, FTPUploadWait, FTPUploadAbort)

FTPDisconnect (testConnection)

See Also

FTPConnect Action | FTPDisconnect Action | FTPDownload Action | FTPUpload Action | FTPDelete Action | FTPNewFolder Action | FTPQuote Action | FTPRename Action