You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2015/03/06 15:05:38 UTC

[jira] [Commented] (CB-8089) File plugin fails to resolve local filesystem root

    [ https://issues.apache.org/jira/browse/CB-8089?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14350357#comment-14350357 ] 

ASF GitHub Bot commented on CB-8089:
------------------------------------

Github user vladimir-kotikov closed the pull request at:

    https://github.com/apache/cordova-plugin-file/pull/93


> File plugin fails to resolve local filesystem root
> --------------------------------------------------
>
>                 Key: CB-8089
>                 URL: https://issues.apache.org/jira/browse/CB-8089
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin File
>         Environment: windows
>            Reporter: Vladimir Kotikov
>
> This can be reproduced by running file spec 15
> {{file.spec.15 should have a root that is a DirectoryEntry: error in resolvingLocalSystemURL.}}
> Function try to resolve local URL like “C:\\Users\\...” but cannot find it because the following code searches index of incorrect root/prefix
> {noformat}
> if (uri.indexOf("file:///") === 0 ) {
>             path = msappdataLocalPath + uri.substr(8).replace('/', '\\');
>         } else if (uri.indexOf(msappdataLocalPrefix) === 0) {
>             path = msappdataLocalPath + uri.replace(msappdataLocalPrefix, '').replace('/', '\\');
>         } else if (uri.indexOf(msappdataTempPrefix) === 0) {
>             path = msappdataTempPath + uri.replace(msappdataTempPrefix, '').replace('/', '\\');
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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