ensureStoragePathExists static method

Future<void> ensureStoragePathExists()

Ensure storage folder exists

Implementation

static Future<void> ensureStoragePathExists() async {
  final dir = Directory(_hiveDataPath);
  if (!await dir.exists()) {
    await dir.create(recursive: true);
  }
}