python get list of file and time created

Solutions on MaxInterview for python get list of file and time created by the best coders in the world

showing results for - "python get list of file and time created"
Emil
31 Jun 2017
1import os
2from pathlib import Path
3
4paths = sorted(Path(dirpath).iterdir(), key=os.path.getmtime)
5