How to use the cordova-plugin-file.bb10CreateEntryFromNative function in cordova-plugin-file

To help you get started, we’ve selected a few cordova-plugin-file examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github apache / cordova-plugin-file / www / blackberry10 / resolveLocalFileSystemURI.js View on Github external
function (fs) {
            if (path === '') {
                // no path provided, call success with root file system
                success(createEntryFromNative(fs.root));
            } else {
                // otherwise attempt to resolve as file
                fs.root.getFile(
                    path,
                    options,
                    function (entry) {
                        success(createEntryFromNative(entry));
                    },
                    function (fileError) {
                        // file not found, attempt to resolve as directory
                        fs.root.getDirectory(
                            path,
                            options,
                            function (entry) {
                                success(createEntryFromNative(entry));
                            },
github apache / cordova-plugin-file / www / blackberry10 / resolveLocalFileSystemURI.js View on Github external
function (entry) {
                                success(createEntryFromNative(entry));
                            },
                            function (dirError) {