Class: GDFileSystem

GDFileSystem()

An interface representing a secure file system

Constructor

new GDFileSystem()

Properties:
Name Type Description
name string The unique name of the file system (readonly)
root DirectoryEntry Root directory of the file system (readonly)
Source:

Methods

exportLogFileToDocumentsFolder()

Call this function to create a dump of BlackBerry Dynamics activity logs. The logs will be dumped to a file that is outside the secure store, in the Documents folder. The file will not be encrypted.
Source:
Example
requestFileSystem(LocalFileSystem.PERSISTENT, 0, function (fileSystem) {
    fileSystem.exportLogFileToDocumentsFolder(function() {
        console.log("Logs are imported to the Documents folder");
    }, null);
}, null);

uploadLogs()

Call this function to upload BlackBerry Dynamics activity logs for support purposes. The logs will be uploaded to a server in the BlackBerry Technology Network Operation Center (NOC). Upload takes place in background and is retried as necessary.
Source:
Example
requestFileSystem(LocalFileSystem.PERSISTENT, 0, function (fileSystem) {
    fileSystem.uploadLogs(function() {
        console.log("Logs are imported to the server");
    }, null);
}, null);