mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-22 10:11:52 +01:00
Move automatic backups from /backup/automatic to /autobackup
Removes the need to try to create child folders, which simplifies things.
This commit is contained in:
parent
d4dfa9a2c2
commit
f365b53a0f
@ -93,7 +93,6 @@ class BackupCreator(
|
|||||||
if (isAutoBackup) {
|
if (isAutoBackup) {
|
||||||
// Get dir of file and create
|
// Get dir of file and create
|
||||||
val dir = UniFile.fromUri(context, uri)
|
val dir = UniFile.fromUri(context, uri)
|
||||||
.createDirectory("automatic")
|
|
||||||
|
|
||||||
// Delete older backups
|
// Delete older backups
|
||||||
dir.listFiles { _, filename -> Backup.filenameRegex.matches(filename) }
|
dir.listFiles { _, filename -> Backup.filenameRegex.matches(filename) }
|
||||||
|
@ -11,7 +11,7 @@ class StoragePreferences(
|
|||||||
fun baseStorageDirectory() = preferenceStore.getString("storage_dir", folderProvider.path())
|
fun baseStorageDirectory() = preferenceStore.getString("storage_dir", folderProvider.path())
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
const val BACKUP_DIR = "backup"
|
const val BACKUP_DIR = "autobackup"
|
||||||
const val DOWNLOADS_DIR = "downloads"
|
const val DOWNLOADS_DIR = "downloads"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user