From 69c34a5bbfcf50587b879cb3414130b77f3e06fe Mon Sep 17 00:00:00 2001 From: Askill Date: Tue, 30 Jan 2024 21:31:29 +0100 Subject: [PATCH] sorting based on last modification instead of creation, as creation is identical with my scanner --- combine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/combine.py b/combine.py index 5aa3f1f..954343f 100644 --- a/combine.py +++ b/combine.py @@ -7,7 +7,7 @@ def get_ordered_files(dir_name): list_of_files = filter(os.path.isfile, glob.glob(dir_name + '/*')) # Sort list of files based on creation time in ascending order - list_of_files = sorted(list_of_files, key=os.path.getctime) + list_of_files = sorted(list_of_files, key=os.path.getmtime) return list_of_files