You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2022/08/18 14:20:39 UTC

[GitHub] [cordova-plugin-file] breautek commented on issue #494: Cannot read files under cordova.file.externalRootDirectory for Android 11

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

   > someone found the way to invoke the creation of a folder? I used to do it like this:
   > 
   > window.resolveLocalFileSystemURL(cordova.file.externalRootDirectory, function fileEntryCallback(fileEntry) { FOLDER_APP = "MyFolder"; fileEntry.getDirectory(APP_FOLDER, { create: true }, success ,fsFail); }, fsFail );
   
   As of Android's Scoped storage introduced in API 29, and enforced in API 30 (`requestLegacyExternalStorage` is ignored), the external root directory is no longer a writable path. You cannot create files or folders in the external root directory anymore. You must use one of the existing directories such as the `Documents`, `Pictures`, `Downloads` directories (to name a few) or your app's external files directory.


-- 
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: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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