mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-19 08:29:20 +01:00
Remove "full_" from v3 backup default file names
This commit is contained in:
parent
f2c0732c40
commit
47a172df1f
@ -74,7 +74,7 @@ class FullBackupManager(context: Context) : AbstractBackupManager(context) {
|
||||
|
||||
// Delete older backups
|
||||
val numberOfBackups = numberOfBackups()
|
||||
val backupRegex = Regex("""tachiyomi_full_\d+-\d+-\d+_\d+-\d+.proto.gz""")
|
||||
val backupRegex = Regex("""tachiyomi_\d+-\d+-\d+_\d+-\d+.proto.gz""")
|
||||
dir.listFiles { _, filename -> backupRegex.matches(filename) }
|
||||
.orEmpty()
|
||||
.sortedByDescending { it.name }
|
||||
|
@ -7,6 +7,6 @@ import java.util.Locale
|
||||
object BackupFull {
|
||||
fun getDefaultFilename(): String {
|
||||
val date = SimpleDateFormat("yyyy-MM-dd_HH-mm", Locale.getDefault()).format(Date())
|
||||
return "tachiyomi_full_$date.proto.gz"
|
||||
return "tachiyomi_$date.proto.gz"
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user