Do not create Mangayomi folder inside AppDir

macOS and iOS already create a separate "Mangayomi" folder. There is no need to nest the downloads and backup folders in another "Mangayomi" folder.
This commit is contained in:
NBA2K1 2025-07-12 05:34:18 +02:00
parent 4d564b9308
commit 5e43cf0468

View file

@ -56,6 +56,7 @@ class StorageProvider {
directory = Directory("/storage/emulated/0/Mangayomi/");
} else {
final dir = await getApplicationDocumentsDirectory();
if (Platform.isIOS || Platform.isMacOS) return dir;
directory = Directory(path.join(dir.path, 'Mangayomi'));
}
return directory;
@ -92,6 +93,7 @@ class StorageProvider {
} else {
final dir = await getApplicationDocumentsDirectory();
final p = dPath.isEmpty ? dir.path : dPath;
if (Platform.isIOS || Platform.isMacOS) return Directory(p);
directory = Directory(path.join(p, 'Mangayomi'));
}
return directory;