You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by st...@apache.org on 2014/02/11 00:23:07 UTC

[41/50] git commit: Fill out filesystem attribute of entities returned from resolveLocalFileSystemURL

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/master
Commit: 2bfa0759701f64b09a6484feb13a71c551f9d39a
Parents: 620bb7c
Author: Ian Clelland <ic...@chromium.org>
Authored: Tue Jan 28 14:35:33 2014 -0500
Committer: Ian Clelland <ic...@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);
             }