lib/Ext/device/filesystem/Sencha.js
function(config) {
        if (!config.success) {
            Ext.Logger.error('Ext.device.filesystem#requestFileSystem: You must specify a `success` callback.');
            return null;
        }

        Ext.device.Communicator.send({
            command: 'FileSystem#requestFileSystem',
            callbacks: {
                success: function(id) {
                    var fileSystem = Ext.create('Ext.device.filesystem.FileSystem', id);

                    config.success.call(config.scope || this, fileSystem);
                },
                failure: function(error) {
                    if (config.failure) {
                        config.failure.call(config.scope || this, error);
                    }
                }
            },
            scope: config.scope || this
        });
    }
function(config) {
        if (!config.success) {
            Ext.Logger.error('Ext.device.filesystem#requestFileSystem: You must specify a `success` callback.');
            return null;
        }

        Ext.device.Communicator.send({
            command: 'FileSystem#requestFileSystem',
            callbacks: {
                success: function(id) {
                    var fileSystem = Ext.create('Ext.device.filesystem.FileSystem', id);

                    config.success.call(config.scope || this, fileSystem);
                },
                failure: function(error) {
                    if (config.failure) {
                        config.failure.call(config.scope || this, error);
                    }
                }
            },
            scope: config.scope || this
        });
    }
Requests a {@link Ext.device.filesystem.FileSystem} instance.

@param {Object} config
The object which contains the following config options:

@param {Function} config.success This is required.
The callback to be called when the file system has been successfully created.

@param {Ext.device.filesystem.FileSystem} config.success.fileSystem
The created file system.

@param {Function} config.failure This is optional.
The callback to be called when an error occurred.

@param {Object} config.failure.error
The occurred error.

@param {Object} config.scope
The scope object