cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From i..@apache.org
Subject git commit: Fill out filesystem attribute of entities returned from resolveLocalFileSystemURL
Date Tue, 28 Jan 2014 19:35:53 GMT
Updated Branches:
  refs/heads/dev 620bb7cd8 -> 2bfa07597


Fill out filesystem attribute of entities returned from resolveLocalFileSystemURL


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

Branch: refs/heads/dev
Commit: 2bfa0759701f64b09a6484feb13a71c551f9d39a
Parents: 620bb7c
Author: Ian Clelland <iclelland@chromium.org>
Authored: Tue Jan 28 14:35:33 2014 -0500
Committer: Ian Clelland <iclelland@chromium.org>
Committed: Tue Jan 28 14:35:33 2014 -0500

----------------------------------------------------------------------
 www/resolveLocalFileSystemURI.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/blob/2bfa0759/www/resolveLocalFileSystemURI.js
----------------------------------------------------------------------
diff --git a/www/resolveLocalFileSystemURI.js b/www/resolveLocalFileSystemURI.js
index 6fef4b1..8c97d31 100644
--- a/www/resolveLocalFileSystemURI.js
+++ b/www/resolveLocalFileSystemURI.js
@@ -50,7 +50,7 @@ module.exports.resolveLocalFileSystemURL = function(uri, successCallback,
errorC
             if (successCallback) {
                 // create appropriate Entry object
                 var fsName = entry.filesystemName || (entry.filesystem == window.PERSISTENT
? 'persistent' : 'temporary');
-                var fs = new FileSystem(fsName);
+                var fs = new FileSystem(fsName, {name:"", fullPath:"/"});
                 var result = (entry.isDirectory) ? new DirectoryEntry(entry.name, entry.fullPath,
fs) : new FileEntry(entry.name, entry.fullPath, fs);
                 successCallback(result);
             }


Mime
View raw message