sorting based on last modification instead of creation, as creation is identical with my scanner
This commit is contained in:
parent
d3e43546bb
commit
69c34a5bbf
|
|
@ -7,7 +7,7 @@ def get_ordered_files(dir_name):
|
||||||
list_of_files = filter(os.path.isfile, glob.glob(dir_name + '/*'))
|
list_of_files = filter(os.path.isfile, glob.glob(dir_name + '/*'))
|
||||||
|
|
||||||
# Sort list of files based on creation time in ascending order
|
# 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
|
return list_of_files
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue