cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shaz...@apache.org
Subject [5/7] cordova-plugin-file git commit: fix ENCODING_ERR for applicationDirectory
Date Thu, 08 Dec 2016 00:56:53 GMT
fix ENCODING_ERR for applicationDirectory

 This closes #193


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

Branch: refs/heads/4.3.x
Commit: f4c2c94c2da58e87aa3e2a47aad9e1076945555e
Parents: 7ae74f5
Author: Reon90 <reon90@gmail.com>
Authored: Thu Aug 25 23:25:49 2016 +0300
Committer: Vladimir Kotikov <kotikov.vladimir@gmail.com>
Committed: Mon Nov 7 13:13:57 2016 +0300

----------------------------------------------------------------------
 src/windows/FileProxy.js | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/blob/f4c2c94c/src/windows/FileProxy.js
----------------------------------------------------------------------
diff --git a/src/windows/FileProxy.js b/src/windows/FileProxy.js
index c342a56..64ee1df 100644
--- a/src/windows/FileProxy.js
+++ b/src/windows/FileProxy.js
@@ -200,6 +200,12 @@ function getAllFS() {
                 nativeURL: 'ms-appdata:///temp',
                 winpath: nativePathToCordova(Windows.Storage.ApplicationData.current.temporaryFolder.path)
             })),
+            'application':
+            Object.freeze(new WinFS('application', { 
+                name: 'application', 
+                nativeURL: 'ms-appx:///',
+                winpath: nativePathToCordova(Windows.ApplicationModel.Package.current.installedLocation.path)
+            })),
             'root':
             Object.freeze(new WinFS('root', { 
                 name: 'root', 
@@ -249,7 +255,7 @@ function pathFromURL(url) {
         }
     }
     
-    ['file://','ms-appdata:///','cdvfile://localhost/'].every(function(p) {
+    ['file://','ms-appdata:///','ms-appx://','cdvfile://localhost/'].every(function(p) {
         if (path.indexOf(p)!==0)
             return true;
         var thirdSlash = path.indexOf("/", p.length);


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message