mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 14:11:16 +08:00
FEATURE: Delete backups based on time window (#24296)
* FEATURE: core code, tests for feature to allow backups to removed based on a time window * FEATURE: getting tests working for time-based backup * FEATURE: getting tests running * FEATURE: linting
This commit is contained in:
@ -35,7 +35,6 @@ module BackupRestore
|
||||
|
||||
def delete_file(filename)
|
||||
path = path_from_filename(filename)
|
||||
|
||||
if File.exist?(path)
|
||||
File.delete(path)
|
||||
reset_cache
|
||||
|
Reference in New Issue
Block a user