sorting based on last modification instead of creation, as creation is identical with my scanner

This commit is contained in:
Askill 2024-01-30 21:31:29 +01:00
parent d3e43546bb
commit 69c34a5bbf
1 changed files with 1 additions and 1 deletions

View File

@ -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