π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Log directory stats if dirSize is > 10MB
Neeraj Gupta09f8cb3bdb5a
diff --git a/lib/ui/tools/debug/app_storage_viewer.dart b/lib/ui/tools/debug/app_storage_viewer.dartindex 4adc754027..e764f18991 100644--- a/lib/ui/tools/debug/app_storage_viewer.dart+++ b/lib/ui/tools/debug/app_storage_viewer.dart@@ -79,6 +79,14 @@ class _AppStorageViewerState extends State<AppStorageViewer> {allowCacheClear: true,),]);+ final List<String> directoryStatePath = [+ appDocumentsDirectory.path,+ appSupportDirectory.path,+ appTemporaryDirectory.path,+ ];+ if (!Platform.isAndroid) {+ directoryStatePath.add(iosTempDirectoryPath);+ }if (internalUser) {paths.addAll([PathStorageItem.name(appDocumentsDirectory.path, "Documents"),@@ -89,11 +97,22 @@ class _AppStorageViewerState extends State<AppStorageViewer> {paths.add(PathStorageItem.name(iosTempDirectoryPath, "/tmp"));}}+ prettyStringDirectoryStats(directoryStatePath).ignore();if (mounted) {setState(() => {});}}+ Future<void> prettyStringDirectoryStats(List<String> paths) async {+ for (var path in paths) {+ final DirectoryStat state = await getDirectorySize(Directory(path));+ final content = prettyPrintDirectoryStat(state, path);+ if (content.isNotEmpty) {+ debugPrint(content);+ }+ }+ }+@overrideWidget build(BuildContext context) {debugPrint("$runtimeType building");