breautek commented on issue #297: URL: https://github.com/apache/cordova-plugin-file/issues/297#issuecomment-1357092600
I realise that this issue is old but I'l give some (modern) answers... `applicationStorageDirectory` is a read only directory. This directory is your application install directory. With Android's scoped storage, enforced in API 30 and later, `externalRootDirectory` is not a writable directory. However `externalRootDirectory + "Download"` (or one of the other predefined directories) is writable, assuming you choose a file that doesn't already exists. Creating custom directory structures is also forbidden in external storage, except for in your own application's external data folder. I'm unable to reproduce any "crashes", just errors as I would expect via the error callbacks. Hope this helps, if the issue persists with the current versions of the platform/plugin, then please create a new issue with updated information. -- 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]
