Created
March 22, 2020 01:15
-
-
Save Andrew-Pynch/8a94d0c7ec8fb2491b1400ff33e72f69 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment