You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by bh...@apache.org on 2014/09/03 22:13:47 UTC

git commit: CB-7458 [BlackBerry10] resolveLocalFileSystemURL - add filesystem property

Repository: cordova-plugin-file
Updated Branches:
  refs/heads/master ca5b94759 -> 0439e711b


CB-7458 [BlackBerry10] resolveLocalFileSystemURL - add filesystem property


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/commit/0439e711
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/tree/0439e711
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/diff/0439e711

Branch: refs/heads/master
Commit: 0439e711b6240973e96158075440bf6c808cb2da
Parents: ca5b947
Author: Bryan Higgins <bh...@blackberry.com>
Authored: Wed Sep 3 16:07:36 2014 -0400
Committer: Bryan Higgins <bh...@blackberry.com>
Committed: Wed Sep 3 16:07:36 2014 -0400

----------------------------------------------------------------------
 www/blackberry10/createEntryFromNative.js | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/blob/0439e711/www/blackberry10/createEntryFromNative.js
----------------------------------------------------------------------
diff --git a/www/blackberry10/createEntryFromNative.js b/www/blackberry10/createEntryFromNative.js
index 1a340f3..f08fbfa 100644
--- a/www/blackberry10/createEntryFromNative.js
+++ b/www/blackberry10/createEntryFromNative.js
@@ -28,7 +28,8 @@
  *  returns Cordova entry
  */
 
-var info = require("org.apache.cordova.file.bb10FileSystemInfo");
+var info = require('org.apache.cordova.file.bb10FileSystemInfo'),
+    fileSystems = require('org.apache.cordova.file.fileSystems');
 
 module.exports = function (native) {
     var entry = {
@@ -56,6 +57,10 @@ module.exports = function (native) {
     } else if (entry.filesystemName === 'local__0:Temporary' || entry.fullPath.indexOf(temporaryPath) !== -1) {
         entry.filesystemName = 'temporary';
     }
+    //add file system property (will be called sync)
+    fileSystems.getFs(entry.filesystemName, function (fs) {
+        entry.filesystem = fs;
+    });
     //set root on fullPath for persistent / temporary locations
     entry.fullPath = entry.fullPath.replace(persistentPath, "");
     entry.fullPath = entry.fullPath.replace(temporaryPath, "");