File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 2828 * returns Cordova entry
2929 */
3030
31- var info = require ( "org.apache.cordova.file.bb10FileSystemInfo" ) ;
31+ var info = require ( 'org.apache.cordova.file.bb10FileSystemInfo' ) ,
32+ fileSystems = require ( 'org.apache.cordova.file.fileSystems' ) ;
3233
3334module . exports = function ( native ) {
3435 var entry = {
@@ -56,6 +57,10 @@ module.exports = function (native) {
5657 } else if ( entry . filesystemName === 'local__0:Temporary' || entry . fullPath . indexOf ( temporaryPath ) !== - 1 ) {
5758 entry . filesystemName = 'temporary' ;
5859 }
60+ //add file system property (will be called sync)
61+ fileSystems . getFs ( entry . filesystemName , function ( fs ) {
62+ entry . filesystem = fs ;
63+ } ) ;
5964 //set root on fullPath for persistent / temporary locations
6065 entry . fullPath = entry . fullPath . replace ( persistentPath , "" ) ;
6166 entry . fullPath = entry . fullPath . replace ( temporaryPath , "" ) ;
You can’t perform that action at this time.
0 commit comments