I want to get last 1 hours modified/created file with python. I tried this code but it's only getting the last file which created. If I created 10 files it shows only last one. How to get last 1 hours created file?
import glob
import os
list_of_files = glob.glob('c://*')
latest_file = max(list_of_files, key=os.path.getctime)
print(latest_file)