Please note: This wiki is currently running in test mode after an attack on January 5 2013. All passwords were reset, so you will have to use the password recovery function to get a new password. To edit wiki pages, please log in first. See the wiki attack description page for more details. If you find problems, please report them to the pydotorg-www mailing list.

How do I get or set the modification date of a file?

use the os module.

Specifically, see os.stat and os.utime documented at http://www.python.org/doc/2.4.2/lib/os-file-dir.html --ZacharyHamm


CategoryAskingForHelp CategoryAskingForHelpAnswered

Asking for Help/How do I get or set the modification date of a file? (last edited 2011-03-26 23:34:24 by PaulBoddie)