You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Matt Grande (JIRA)" <ji...@apache.org> on 2014/04/11 14:29:14 UTC

[jira] [Comment Edited] (CB-6428) Unable to read android_asset directory through File API

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

Matt Grande edited comment on CB-6428 at 4/11/14 12:29 PM:
-----------------------------------------------------------

File plugin is 1.0.1 which seems to be the most recent version on github (although I'm not sure how up-to-date that is, if it auto-updates, etc)

Edit: Sorry, should I have put the plugin version in the version field above?


was (Author: mattgrande):
File plugin is 1.0.1 which seems to be the most recent version on github (although I'm not sure how up-to-date that is, if it auto-updates, etc)

> Unable to read android_asset directory through File API
> -------------------------------------------------------
>
>                 Key: CB-6428
>                 URL: https://issues.apache.org/jira/browse/CB-6428
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin File
>    Affects Versions: 3.3.0
>         Environment: Android 4.4.2 / Samsung Galaxy S4
>            Reporter: Matt Grande
>            Assignee: Ian Clelland
>              Labels: android, file
>
> Attempting to read the 'android_asset' folder through the File API results in Error Code 5 (FileError.ENCODING_ERR). I've tried accessing via resolveLocalFileSystemURL, and by creating a directory reader and calling readEntries().
>     window.resolveLocalFileSystemURL('file:///android_asset/www/my_asset_folder', success, fail);
>     var sourceDir = new DirectoryEntry( { fullPath: 'file:///android_asset/www/my_asset_folder' } );
>     var reader = sourceDir.createReader();
>     reader.readEntries(success, fail);
> (I have also tried with the URLs being '/android_asset/www/my_asset_folder'; same result)



--
This message was sent by Atlassian JIRA
(v6.2#6252)