DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
python get list of file and time created
import os from pathlib import Path paths = sorted(Path(dirpath).iterdir(), key=os.path.getmtime)
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#python
#list
#file
#time
#created
ADD COMMENT
Topic
COMMENT
Name
8+4 =
Submit