cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bhigg...@apache.org
Subject git commit: CB-4899 [BlackBerry10] Fix resolve directories
Date Thu, 09 Jan 2014 16:25:46 GMT
Updated Branches:
  refs/heads/dev 51be28eeb -> e7f83cb7d


CB-4899 [BlackBerry10] Fix resolve directories


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/e7f83cb7
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/tree/e7f83cb7
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/diff/e7f83cb7

Branch: refs/heads/dev
Commit: e7f83cb7de0f989ed95de57fdf38255fcdc9b86f
Parents: 51be28e
Author: Bryan Higgins <bhiggins@blackberry.com>
Authored: Thu Jan 9 11:26:14 2014 -0500
Committer: Bryan Higgins <bhiggins@blackberry.com>
Committed: Thu Jan 9 11:28:20 2014 -0500

----------------------------------------------------------------------
 www/blackberry10/resolveLocalFileSystemURI.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/blob/e7f83cb7/www/blackberry10/resolveLocalFileSystemURI.js
----------------------------------------------------------------------
diff --git a/www/blackberry10/resolveLocalFileSystemURI.js b/www/blackberry10/resolveLocalFileSystemURI.js
index f447a42..fd0e217 100644
--- a/www/blackberry10/resolveLocalFileSystemURI.js
+++ b/www/blackberry10/resolveLocalFileSystemURI.js
@@ -31,10 +31,10 @@ module.exports = function (uri, success, fail) {
         resolveURI = function () {
             window.webkitRequestFileSystem(
                 window.PERSISTENT,
-                //todo: match app quota (this is only used for sandboxed fs)
                 50*1024*1024,
                 function (fs) {
-                    fs.root.getFile(
+                    var op = decodedURI.slice(-1) === '/' ? 'getDirectory' : 'getFile';
+                    fs.root[op](
                         decodedURI,
                         { create: false },
                         function (entry) {


Mime
View raw message