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

Ian Clelland commented on CB-5899:
----------------------------------

In your config.xml file, add a line like

{code}
<preference name="AndroidPersistentFileLocation" value="Compatibility" />
{code}

inside the {{<widget>}} tag. (If you're developing a new app, and you don't 
have users who have previously stored data, then you can use {{"Internal"}} 
instead of {{"Compatibility"}}; that will use the app-specific storage 
directory on the device for your files, rather than attempting to put them on 
the SD card.

> FileError code 5 returned with dirEntry.readEntries()
> -----------------------------------------------------
>
>                 Key: CB-5899
>                 URL: https://issues.apache.org/jira/browse/CB-5899
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android, Plugin File
>    Affects Versions: 3.3.0
>         Environment: Android 4.1, Android 4.4
>            Reporter: Boston Dell-Vandenberg
>            Assignee: Ian Clelland
>
> When attempting to read entries of a DirectoryEntry from the local file 
> system the plugin returns an FileError code 5.
> I am able to successfully read the root directory of the local file system 
> using window.requestFileSystem() but creating a directoryReader and calling 
> readEntries() of any sub directories of the root file system results in the 
> error.
> I am using Cordova 3.3 and have tried both 0.2.5 of the file plugin as well 
> as the current Dev branch.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to