Skip to content

Instantly share code, notes, and snippets.

View Andrew-Pynch's full-sized avatar
🎯
Focusing

Andrew Pynch Andrew-Pynch

🎯
Focusing
View GitHub Profile
def order_files_by_date(path_to_folder, file_type):
files = glob.glob("%s*%s" % (path_to_folder, file_type))
files.sort(key=os.path.getmtime)
return files