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: [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]