breautek commented on issue #494:
URL: 
https://github.com/apache/cordova-plugin-file/issues/494#issuecomment-921288899


   If you're app has the `READ_EXTERNAL_STORAGE` permission granted, in my 
testing reading from external storage works, however some APIs did not attempt 
to request permission. Reading directories was one of those methods. I have an 
open [PR](https://github.com/apache/cordova-plugin-file/pull/487) that corrects 
this specific issue, but not sure if that covers all cases for external 
storage. You can try applying that PR to see if it addresses your issue. Note 
that any app that has been prompted for external storage permissions but been 
previously denied may result in an automatic denial of the permission, in which 
case the user must navigate to the permission settings themselves to enable the 
permission.
   
   `READ_EXTERNAL_STORAGE` permission isn't always necessary for reading files 
in external storage, but it is necessary when reading files that doesn't belong 
to your app. I believe anything outside of your application's external data 
directory is considered not own by your app (with the exception of the 
predefined MediaStore containers, which has some special rules).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to