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

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

GitHub user vladimir-kotikov opened a pull request:

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

    CB-8089 Fixes failure when trying to resolve local file system root

    Fix for CB-8089](https://issues.apache.org/jira/browse/CB-8089)

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/MSOpenTech/cordova-plugin-file CB-8089

Alternatively you can review and apply these changes as the patch at:

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

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #93
    
----
commit 7bebaa67c07662db6623739468d14b867f76b7df
Author: Vladimir Kotikov <[email protected]>
Date:   2014-11-27T14:59:57Z

    CB-8089 Fixes failure when trying to resolve local file system root

----


> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to