cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-6428) Unable to read android_asset directory through File API
Date Tue, 31 Mar 2015 17:58:59 GMT

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

ASF subversion and git services commented on CB-6428:
-----------------------------------------------------

Commit 67924cf9f679d3e6cbb05411f76f90405f36288c in cordova-plugin-file's branch refs/heads/old-ID
from [~agrieve]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-plugin-file.git;h=67924cf ]

CB-8699 CB-6428 Fix uncompressed assets being copied as zero length files


> 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: Andrew Grieve
>              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.3.4#6332)

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


Mime
View raw message