How should we decide whether to use documentDirectory or applicationSupportDirectory?

后端 未结 2 1361
日久生厌
日久生厌 2021-01-29 05:37

We plan to store the following user files

  • SQLite file
  • Image files
  • Audio files

We also provide an option for users, to upload and d

2条回答
  •  感情败类
    2021-01-29 06:24

    It doesn't make much difference which you choose. The chief difference is in case you want to use a file browser or the Files app; they can look in your documents directory but not in your application support directory.

    Also if you pick one and release the app and later change your mind, it's easy to migrate and change where the app stores its information.

提交回复
热议问题