ente/auth/lib/utils/directory_utils.dart

13 lines
331 B
Dart
Raw Normal View History

import 'package:path/path.dart' as p;
import 'package:path_provider/path_provider.dart';
class DirectoryUtils {
static Future<String> getDatabasePath(String databaseName) async => p.joinAll(
[
(await getApplicationDocumentsDirectory()).path,
"ente",
".$databaseName",
],
);
}