hive icon indicating copy to clipboard operation
hive copied to clipboard

Why does Hive use the documents directory by default?

Open jmshrv opened this issue 4 years ago • 2 comments

Question On iOS, Hive puts DB files in the user-readable documents area instead of the private app documents. Is this intentional, or is it just too hard to fix now that there are production apps running with Hive in the documents folder? This also applies to desktop.

Code sample Not needed since this is a more general question about Hive.

Version

  • Platform: iOS
  • Flutter version: 2.2.3
  • Hive version: 2.0.4 (hive_flutter 1.0.0)

jmshrv avatar Jul 13 '21 01:07 jmshrv

I am having this problem too. Hive should absolutely not mess with the documents folder. This folder is only for the user to manage manually. Now my documents are spammend with random files. This should be fixable with an update. Just check if there are .hive files in the documents directory on initialization and move them to the new default location if that is the case.

Quijx avatar Dec 08 '21 11:12 Quijx

Hey, facing the same issue here.

Is this functionality on the roadmap?

I've opened ticket https://github.com/isar/hive/issues/1257 to find out if it is possible to change the location for the .lock and .hive files.

TNelen avatar Oct 29 '23 20:10 TNelen