From 9d9630a27ad8b908c77d303f9e030ce32da5fe8a Mon Sep 17 00:00:00 2001 From: Ruud Date: Sun, 1 Jun 2014 16:46:21 +0200 Subject: [PATCH] Sorted backup files --- couchpotato/runner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/couchpotato/runner.py b/couchpotato/runner.py index 3ddd4ac6..3cdd8648 100644 --- a/couchpotato/runner.py +++ b/couchpotato/runner.py @@ -99,7 +99,7 @@ def runCouchPotato(options, base_path, args, data_dir = None, log_dir = None, En if not os.path.isdir(backup_path): os.makedirs(backup_path) for root, dirs, files in os.walk(backup_path): - for backup_file in files: + for backup_file in sorted(files): ints = re.findall('\d+', backup_file) # Delete non zip files