Please provide the following:
- SDK Version: 39
- Platforms(Android/iOS/web/all): Android/IOS
1.- What determines the size of documentDirectory in either platform?
2.- Can I increase it?
Cheers!
Please provide the following:
1.- What determines the size of documentDirectory in either platform?
2.- Can I increase it?
Cheers!
Hey @fozzarelo, I’ll have to bring this up internally and we’ll circle back here when we have more information for you.
Cheers,
Adam
Hello @fozzarelo
I’m not 100% sure what do you mean by documentDirectory size (because it could either mean current size of the directory (how many bytes it takes on the disk with all it’s contents at a given time) or maximum directory capacity (some global limitation imposed on the directory), but basing on the second subquestion I guess you mean the latter.
Context.filesDir
as described in this Android guide about accessing app-specific files. On Android there’re might be a system implied limit per application though. I’ve found this Stack Overflow question pointing to the Android Compatibility Definition Document and for lowest Android API we’re supporting (Android 5.0 (API 21)) it says:
7.6.1. Minimum Memory and Storage
Android Television devices MUST have at least 5GB and other device implementations MUST have at least 1.5GB of non-volatile storage available for application private data.
documentDirectory
. My recommendation would be to query the available free disk space beforehand using FileSystem.getFreeDiskStorageAsync()
.This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.