mdm.FTP


Constructor
The following table lists the constructors for the FTP class

Constructor Description Availability
mdm.FTP() Creates a new FTP Instance using the specified paramete...

Methods
The following table lists the methods for the FTP class

Method Description Availability
FTP.abort() Aborts the current transfer.
FTP.chDir() Changes the current FTP directory.
FTP.close() Closes the specified FTP instance and removes it from memory.
FTP.deleteDir() Deletes the specified directory from the FTP server.
FTP.deleteFile() Deletes the specified file from the FTP server.
FTP.dirExists() Specifies whether or not the specified directory exists in the current directory.
FTP.fileExists() Specifies whether or not the specified file exists in the current directory.
FTP.getDirAttribs() Returns the attributes of the specified directory.
FTP.getDirDateTime() Returns the date and time of the specified directory.
FTP.getFile() Downloads the specified file to the specified location.
FTP.getFileAttribs() Returns the attributes of the specified filename.
FTP.getFileDateTime() Returns the date and time of the specified filename.
FTP.getFileList() Returns a 2 dimensional array which contains all of the files in the current FTP directory. The...
FTP.getFileSize() Returns the size in bytes of the specified filename.
FTP.getFolderList() Returns a 2 dimensional array which contains all of the folders in the current FTP directory. T...
FTP.login() Logs into the FTP server using the specified username and password.
FTP.makeDir() Creates a new directory on the FTP Server.
FTP.moveFile() Moves the specified file to the specified folder on the FTP Server.
FTP.renameFile() Renames the specified file(s).
FTP.sendCommand() Sends a specified command to the FTP server. The command can be any string for use with custom ...
FTP.sendFile() Uploads the specified file and saves it onto the FTP server with the specified name.
FTP.setProxy() Sets the type of FTP connection to use if the connection is behind a proxy server.

Properties
The following table lists the properties for the FTP class

Method Description Availability
FTP.account Contains the account name to connect to, for ...
FTP.bytesTransferred Contains the number of bytes transferred sinc...
FTP.currentDir Contains the current directory on the FTP ser...
FTP.error Contains a description of the last error (if ...
FTP.isConnected Contains a boolean indicating whether or not ...
FTP.lastReply Contains the last response line from the FTP ...
FTP.loggerData Contains all of the text from the FTP logger ...

Events
The following table lists the events for the FTP class

Method Description Availability
onAborted Dispatched when an FTP transfer is aborted.
onConnected Dispatched when an FTP Connection occurs succ...
onDirChanged Dispatched to registered listener(s) (or call...
onDirCreated Dispatched to registered listener(s) (or call...
onDirDeleted Dispatched to registered listener(s) (or call...
onError Dispatched to registered listener (or called ...
onFileDeleted Dispatched to registered listener(s) (or call...
onFileReceived Dispatched to registered listener(s) (or call...
onFileRenamed Dispatched to registered listener(s) (or call...
onFileSent Dispatched to registered listener(s) (or call...
onLoggedIn Dispatched to registered listener(s) (or call...