Skip to content

Commit 0439e71

Browse files
author
Bryan Higgins
committed
CB-7458 [BlackBerry10] resolveLocalFileSystemURL - add filesystem property
1 parent ca5b947 commit 0439e71

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

www/blackberry10/createEntryFromNative.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
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

3334
module.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, "");

0 commit comments

Comments
 (0)