documentDirectory size

Please provide the following:

  1. SDK Version: 39
  2. Platforms(Android/iOS/web/all): Android/IOS

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 :wave:
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.

  • re 1:
  • re 2:
    • As there’s no way to edit the aforementioned capacity limit you might run out of the disk space while operating on files located in 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.