Possible Duplicate:
How to get file creation & modification date/times in Python?
I would like to get the created date and time of a folder. Are there anyways to do that in p开发者_如何学运维ython?
Thank you
You might use os.stat
to retrieve this information.
os.stat(path).st_mtime // time of most recent content modification,
os.stat(path).st_ctime // platform dependent; time of most recent metadata change on Unix, or the time of creation on Windows)
精彩评论