mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-10-31 14:27:57 +01:00 
			
		
		
		
	Remove "full_" from v3 backup default file names
This commit is contained in:
		| @@ -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" | ||||
|     } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user