Update lib/windows8/plugin/windows8/FileTransferProxy.js

Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/commit/a4848776
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/tree/a4848776
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/diff/a4848776

Branch: refs/heads/master
Commit: a48487767db78c4ce83b5cf098f4ffa050c1a742
Parents: 1ffb6fd
Author: wangmingfeng <mingfengwan...@gmail.com>
Authored: Tue Sep 25 09:35:22 2012 +0800
Committer: wangmingfeng <mingfengwan...@gmail.com>
Committed: Tue Sep 25 09:35:22 2012 +0800

----------------------------------------------------------------------
 lib/windows8/plugin/windows8/FileTransferProxy.js |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/a4848776/lib/windows8/plugin/windows8/FileTransferProxy.js
----------------------------------------------------------------------
diff --git a/lib/windows8/plugin/windows8/FileTransferProxy.js 
b/lib/windows8/plugin/windows8/FileTransferProxy.js
index 1f77a33..a3b5436 100644
--- a/lib/windows8/plugin/windows8/FileTransferProxy.js
+++ b/lib/windows8/plugin/windows8/FileTransferProxy.js
@@ -18,7 +18,7 @@ module.exports = {
         }
 
         if (String(filePath).substr(0, 8) == "file:///") {
-            filePath = FileSystemPersistentRoot + 
String(filePath).substr(8).split("/").join("\\");
+            filePath = 
Windows.Storage.ApplicationData.current.localFolder.path + 
String(filePath).substr(8).split("/").join("\\");
         }
 
         
Windows.Storage.StorageFile.getFileFromPathAsync(filePath).then(function 
(storageFile) {
@@ -57,7 +57,7 @@ module.exports = {
             return;
         }
         if (String(target).substr(0, 8) == "file:///") {
-            target = FileSystemPersistentRoot + 
String(target).substr(8).split("/").join("\\");
+            target = Windows.Storage.ApplicationData.current.localFolder.path 
+ String(target).substr(8).split("/").join("\\");
         }
         var path = target.substr(0, String(target).lastIndexOf("\\"));
         var fileName = target.substr(String(target).lastIndexOf("\\") + 1);

Reply via email to