Make it a priority to use filesystemName to create FileSystem object

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

Branch: refs/heads/master
Commit: d28f85d7b054bb6d9fb577f94df2852ede75c2b1
Parents: 0f8467b
Author: lmnbeyond <[email protected]>
Authored: Mon Feb 24 11:14:16 2014 +0800
Committer: lmnbeyond <[email protected]>
Committed: Mon Feb 24 11:14:16 2014 +0800

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


http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/blob/d28f85d7/www/FileTransfer.js
----------------------------------------------------------------------
diff --git a/www/FileTransfer.js b/www/FileTransfer.js
index d6690fe..fb3ff24 100644
--- a/www/FileTransfer.js
+++ b/www/FileTransfer.js
@@ -184,7 +184,7 @@ FileTransfer.prototype.download = function(source, target, 
successCallback, erro
             entry.isFile = result.isFile;
             entry.name = result.name;
             entry.fullPath = result.fullPath;
-            entry.filesystem = new FileSystem(result.filesystem == 
window.PERSISTENT ? 'persistent' : 'temporary');
+            entry.filesystem = new FileSystem(result.filesystemName || 
(result.filesystem == window.PERSISTENT ? 'persistent' : 'temporary'));
             successCallback(entry);
         }
     };

Reply via email to