cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (CB-9887) Windows platform file plugin does not define standard cordova.file.* paths
Date Thu, 05 Nov 2015 01:13:27 GMT


ASF GitHub Bot commented on CB-9887:

Github user jasongin commented on a diff in the pull request:
    --- 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:
>             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

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message