[
https://issues.apache.org/jira/browse/CB-9887?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14990873#comment-14990873
]
ASF GitHub Bot commented on CB-9887:
------------------------------------
Github user jasongin commented on a diff in the pull request:
https://github.com/apache/cordova-plugin-file/pull/143#discussion_r43965498
--- Diff: src/windows/FileProxy.js ---
@@ -168,6 +168,15 @@ WinFS.prototype.__format__ = function(fullPath) {
return 'cdvfile://localhost' + path;
};
+var windowsPaths = {
+ dataDirectory: "ms-appdata:///local/",
+ cacheDirectory: "ms-appdata:///temp/",
+ tempDirectory: "ms-appdata:///temp/",
+ syncedDataDirectory: "ms-appdata:///roaming/",
+ applicationDirectory: "ms-appdata:///",
--- End diff --
I think applicationDirectory and applicationStorageDirectory should point
to ms-appx:/// rather than ms-appdata:///
> Windows platform file plugin does not define standard cordova.file.* paths
> --------------------------------------------------------------------------
>
> Key: CB-9887
> URL: https://issues.apache.org/jira/browse/CB-9887
> Project: Apache Cordova
> Issue Type: Bug
> Components: Plugin File
> Environment: cordova platform windows
> windows 10 universal app
> Reporter: Gaven Henry
> Labels: windows
> Original Estimate: 168h
> Remaining Estimate: 168h
>
> On android and ios the file plugin defines some standard paths of the form
> "cordova.file.*" (such as cordova.file.dataDirectory) which are used as a
> simple and consistent way to access different types of storage.
> On the windows platform none of these paths are defined and attempts to query
> cordova.file.* returns undefined.
> This means that if you want to port an app from ios or android to the windows
> platform it will fail to launch due to these paths not being defined.
> Need to update the windows platform code to define the available file systems
> for the windows platform.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]