Hi guys,

I have a problem with File plugin using it in Ionic 3 project. Could you please 
help me?

When I call `checkDir()`, `listDir()` or `checkFile()` with:
- absolute SD card path like this one: 
`/storage/sd-card-id/Android/data/app-id/files` (the path I use to store files 
with FileTransfer plugin) I receive `ENCODING_ERR`, 
- using a path like this one 
`file:///storage/sd-card-id/Android/data/app-id/files` cause no errors by 
checking folders, but it doesn't see any files, so I receive `NOT_FOUND_ERR` by 
`checkFile()`.

I also added these preferences in the `config.xml`
```
<preference name="AndroidPersistentFileLocation" value="Internal" />
<preference name="AndroidPersistentFileLocation" value="Compatibility" />
<preference name="AndroidExtraFilesystems" 
value="files,files-external,documents,sdcard,cache,cache-external,assets,root" 
/>
```
and provide dynamic access request for the data storage. So the fileTransfer 
plugin, for example, works fine in the app and stores files on the SD card. 

As far as I can see the value of 
`cordova.file.externalApplicationStorageDirectory` (and other external path 
variables) is `/storage/emulated/0/path/to/file` but not the real path. 

How can I access the files on a SD card using this plugin?



[ Full content available at: 
https://github.com/apache/cordova-plugin-file/issues/255 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to