π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
fix: set correct cache directory for all platforms
Prateek Sunald07f6f8ee1ee
diff --git a/auth/lib/utils/directory_utils.dart b/auth/lib/utils/directory_utils.dartindex e5753a49c2..18d8ab30cf 100644--- a/auth/lib/utils/directory_utils.dart+++ b/auth/lib/utils/directory_utils.dart@@ -24,16 +24,7 @@ class DirectoryUtils {}static Future<Directory> getDirectoryForInit() async {- Directory? directory;- if (Platform.isLinux) {- try {- return await getApplicationCacheDirectory();- } catch (e) {- logger.warning("Failed to get application cache directory: $e");- }- }-- directory ??= await getApplicationDocumentsDirectory();+ Directory directory = await getApplicationCacheDirectory();return Directory(p.join(directory.path, "enteauthinit"));}