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 2016/02/09 21:58:18 UTC
[jira] [Commented] (CB-10577) Android plugin file:
resolveLocalFileSystemURL produce incorrect value
[ https://issues.apache.org/jira/browse/CB-10577?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15139741#comment-15139741 ]
ASF GitHub Bot commented on CB-10577:
-------------------------------------
GitHub user vldmrrr opened a pull request:
https://github.com/apache/cordova-plugin-file/pull/162
CB-10577 Check if URL points to file or directory.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/vldmrrr/cordova-plugin-file CB-10577
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/cordova-plugin-file/pull/162.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 #162
----
commit 5bccee81923384c2c5c4e4e80026ad5f7027dcff
Author: vladimir <vl...@dellaio>
Date: 2016-02-09T20:54:58Z
Check if URL point to file or directory.
----
> Android plugin file: resolveLocalFileSystemURL produce incorrect value
> ----------------------------------------------------------------------
>
> Key: CB-10577
> URL: https://issues.apache.org/jira/browse/CB-10577
> Project: Apache Cordova
> Issue Type: Bug
> Components: Plugin File
> Reporter: vldmrrrr
> Attachments: index.js
>
>
> On android resolveLocalFileSystemURL sets isDirectory and isFile properties based on argument URL having trailing slash, and not on actual object type. See attached test program, which currently outputs the following:
> cdvfile://localhost/temporary/tst is file
> cdvfile://localhost/temporary/tst/ is directory
> Correct output shall be:
> cdvfile://localhost/temporary/tst is directory
> cdvfile://localhost/temporary/tst/ is directory
--
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