tags:

views:

694

answers:

1

How do I get the modified date/time of a file in Python?

+14  A: 
os.path.getmtime(filepath)

or

os.stat(filepath).st_mtime
Thomas Wouters