Asking for Help/How do I get or set the modification date of a file?¶
Legacy Wiki Page
This page was migrated from the old MoinMoin-based wiki. Information may be outdated or no longer applicable. For current documentation, see python.org.
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