From f365b53a0fbfb6f4147c688416e101aee9bae7fc Mon Sep 17 00:00:00 2001 From: arkon Date: Sun, 26 Nov 2023 16:04:25 -0500 Subject: [PATCH] Move automatic backups from /backup/automatic to /autobackup Removes the need to try to create child folders, which simplifies things. --- .../main/java/eu/kanade/tachiyomi/data/backup/BackupCreator.kt | 1 - .../java/tachiyomi/domain/storage/service/StoragePreferences.kt | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/backup/BackupCreator.kt b/app/src/main/java/eu/kanade/tachiyomi/data/backup/BackupCreator.kt index 619e30e01..a8cd3b773 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/backup/BackupCreator.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/backup/BackupCreator.kt @@ -93,7 +93,6 @@ class BackupCreator( if (isAutoBackup) { // Get dir of file and create val dir = UniFile.fromUri(context, uri) - .createDirectory("automatic") // Delete older backups dir.listFiles { _, filename -> Backup.filenameRegex.matches(filename) } diff --git a/domain/src/main/java/tachiyomi/domain/storage/service/StoragePreferences.kt b/domain/src/main/java/tachiyomi/domain/storage/service/StoragePreferences.kt index c336825b8..a426caaa4 100644 --- a/domain/src/main/java/tachiyomi/domain/storage/service/StoragePreferences.kt +++ b/domain/src/main/java/tachiyomi/domain/storage/service/StoragePreferences.kt @@ -11,7 +11,7 @@ class StoragePreferences( fun baseStorageDirectory() = preferenceStore.getString("storage_dir", folderProvider.path()) companion object { - const val BACKUP_DIR = "backup" + const val BACKUP_DIR = "autobackup" const val DOWNLOADS_DIR = "downloads" } }