mdm.FileSystem


Objects
The following table lists the objects for the FileSystem class

Method Description Availability
BinaryFile BinaryFile Object


Methods
The following table lists the methods for the FileSystem class

Method Description Availability
FileSystem.appendFile() Appends the specified text data to the specified file. When error occurs during operation (for ...
FileSystem.appendFileAsync() Appends the specified text data to the specified file. This is asynchronous method: once operat...
FileSystem.copyFile() Copies the specified file to the specified location. When error occurs during operation (for wh...
FileSystem.copyFileAsync() Copies the specified file to the specified location. This is asynchronous method. When it finis...
FileSystem.copyFolder() Copies the specified folder to the specified location. When error occurs during operation (for ...
FileSystem.copyFolderAsync() Copies the specified folder to the specified location. This is asynchronous method. When operat...
FileSystem.createShortcut() Creates a shortcut.
FileSystem.deleteFile() Deletes the specified file.
FileSystem.deleteFileAsync() Deletes the specified file. This is asynchronous operation. When it completes either "onComplet...
FileSystem.deleteFolder() Deletes the specified folder. The 'prompt' parameter must be either "ask" to prompt the user be...
FileSystem.deleteFolderAsync() Deletes the specified folder. The 'prompt' parameter must be either "ask" to prompt the user be...
FileSystem.fileExists() Returns a boolean indicating whether or not the specified file exists.
FileSystem.findFile() Returns a colon (';') seperated list of files in the specified folder and subdirectories which ...
FileSystem.findFileAsync() Returns a colon (';') seperated list of files in the specified folder and subdirectories which ...
FileSystem.folderExists() Returns a boolean indicating whether or not the specified folder exists.
FileSystem.getAssociation() Returns the full path to the system associated executable for loading the specified extension.<...
FileSystem.getCurrentDir() Returns the application's current directory.
FileSystem.getFileAttribs() Returns an array of items holding the file properties of the specified file.
FileSystem.getFileCreator() Returns the file creator code of the specified file.
FileSystem.getFileDate() Returns the modification date of the specified file. It can be used together with mdm.FileSyste...
FileSystem.getFileList() Returns an array of files which exist in the specified folder and have the specified extension.
FileSystem.getFileListAsync() This method asynchronously returns a list of files that exist in the specified folder with opti...
FileSystem.getFileSize() Returns the size of the specified file in bytes.
FileSystem.getFileSizeAsync() Asynchronously returns the size of the specified file in bytes. Once operation completes either...
FileSystem.getFileTime() Returns the last modified time of the specified file. The string has format like: "10:51:30"
FileSystem.getFileType() Returns the file type of the specified file.
FileSystem.getFolderList() Returns a list of folders that exist in the specified folder.
FileSystem.getFolderListAsync() This method asynchronously returns a list of folders that exist in the specified folder. When o...
FileSystem.getFolderSize() Returns the size of the specified folder in KB.
FileSystem.getLongPathName() Converts the specified DOS 8.3 filename to a long filename.
FileSystem.getShortPathName() Converts the specified long filename to a DOS 8.3 filename.
FileSystem.loadFile() Loads data from text files.
FileSystem.loadFileHEX() Loads HEX or a pipe delimited decimal string from the specified file.
FileSystem.makeFolder() Creates a new folder with the specified name.
FileSystem.saveFile() Saves text data to the specified file.
FileSystem.saveFileHEX() Saves HEX data to the specified file.
FileSystem.setCurrentDir() Changes the application's current directory.
FileSystem.setFileAttribs() Sets/Unsets the attribute of the specified file to one of possible values:

+A sets the...

Events
The following table lists the events for the FileSystem class

Method Description Availability
onComplete This event is delivered to registered listene...
onIOError This event is delivered to registered listene...
onResult This event is delivered to registered listene...