The FTP object is available as a scriptable object. This object is useful
when the FTP Connector does not
provide the required functionality.
Function |
Description |
boolean connect (String host, String user, String pass) |
Connect to an FTP server using the host, user and pass. |
boolean close () |
Close current FTP session |
boolean get (String remoteFile, String localFile) |
Transfer remote file to local system |
boolean put (String localFile, String remoteFile) |
Transfer local file to remote system |
void setAscii () |
Set ASCII mode for file transfer |
void setBinary () |
Set Binary mode for file transfer |
boolean cd (String remoteDirectory) |
Change remote working directory |
Object dir () |
Retrieve directory listing |
boolean remove (String remoteFile) |
Remove file from FTP server |
boolean rename (String file, String newname) |
Rename file on FTP server |
Exception getLastError () |
Get the error object for the last operation |