lib/Ext/device/filesystem/Sencha.js
function(config) {
                if (config.path == null) {
                    Ext.Logger.error('Ext.device.filesystem.DirectoryEntry#getFile: You must specify a `path` of the file.');
                    return null;
                }

                if (config.options == null) {
                    config.options = {};
                }

                var me = this;
                Ext.device.Communicator.send({
                    command: 'FileSystem#getEntry',
                    path: this.path,
                    fileSystemId: this.fileSystem.id,
                    newPath: config.path,
                    directory: config.directory,
                    create: config.options.create,
                    exclusive: config.options.exclusive,
                    callbacks: {
                        success: function(path) {
                            if (config.success) {
                                var entry = config.directory
                                    ? Ext.create('Ext.device.filesystem.DirectoryEntry', path, me.fileSystem)
                                    : Ext.create('Ext.device.filesystem.FileEntry', path, me.fileSystem);

                                config.success.call(config.scope || this, entry);
                            }
                        },
                        failure: function(error) {
                            if (config.failure) {
                                config.failure.call(config.scope || this, error);
                            }
                        }
                    },
                    scope: config.scope || this
                });
            }
function(config) {
                if (config.path == null) {
                    Ext.Logger.error('Ext.device.filesystem.DirectoryEntry#getFile: You must specify a `path` of the file.');
                    return null;
                }

                if (config.options == null) {
                    config.options = {};
                }

                var me = this;
                Ext.device.Communicator.send({
                    command: 'FileSystem#getEntry',
                    path: this.path,
                    fileSystemId: this.fileSystem.id,
                    newPath: config.path,
                    directory: config.directory,
                    create: config.options.create,
                    exclusive: config.options.exclusive,
                    callbacks: {
                        success: function(path) {
                            if (config.success) {
                                var entry = config.directory
                                    ? Ext.create('Ext.device.filesystem.DirectoryEntry', path, me.fileSystem)
                                    : Ext.create('Ext.device.filesystem.FileEntry', path, me.fileSystem);

                                config.success.call(config.scope || this, entry);
                            }
                        },
                        failure: function(error) {
                            if (config.failure) {
                                config.failure.call(config.scope || this, error);
                            }
                        }
                    },
                    scope: config.scope || this
                });
            }
Creates or looks up a file.

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

@param {String} config.path This is required.
The absolute path or relative path from the entry to the file to create or select.

@param {Object} config.options This is optional.
The object which contains the following options:

@param {Boolean} config.options.create This is optional.
Indicates whether to create a file, if path does not exist.

@param {Boolean} config.options.exclusive This is optional. Used with 'create', by itself has no effect.
Indicates that method should fail, if path already exists.

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

@param {Ext.device.filesystem.Entry} config.success.entry
The created or selected file.

@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