π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
fix: temp dir scope
Prateek Sunal29adca2a9968
diff --git a/auth/lib/utils/directory_utils.dart b/auth/lib/utils/directory_utils.dartindex d56bc7973e..ae8b8ededf 100644--- a/auth/lib/utils/directory_utils.dart+++ b/auth/lib/utils/directory_utils.dart@@ -66,13 +66,12 @@ class DirectoryUtils {Directory oldDataDir;Directory newDataDir = await getApplicationSupportDirectory();await newDataDir.create(recursive: true);-- Directory? tempDir;+if (Platform.isLinux) {oldDataDir = Directory(p.join(dataHome.path, "ente_auth"),);- tempDir = Directory(+ Directory tempDir = Directory(p.join(dataHome.path, "enteauth"),);if (tempDir.existsSync()) {@@ -88,24 +87,23 @@ class DirectoryUtils {"ente",),);- tempDir = Directory(+ Directory tempDir = Directory(p.join((await getApplicationDocumentsDirectory()).path,"enteauth",),);if (tempDir.existsSync()) {+ oldDataDir = tempDir;databaseFile = File(p.join(- (await getApplicationDocumentsDirectory()).path,- "enteauth",+ tempDir.path,".ente.authenticator.db",),);offlineDatabaseFile = File(p.join(- (await getApplicationDocumentsDirectory()).path,- "enteauth",+ tempDir.path,".ente.offline_authenticator.db",),);