[Tutor] Forcing file modified date to arbitrary future date?
Lloyd Kvam
pythontutor at venix.com
Wed Oct 15 09:52:17 EDT 2003
(replying to another email and changing the subject does not change the threading.
It's best to create a new email to start a new thread.)
os.utime should do what you want.
R. Alan Monroe wrote:
> Subject says it all - I need a way to change the last modified date of
> a file to any arbitrary future date. I didn't see anything in os.path.
> It has a "getmtime" function, but not a matching "setmtime", that I
> could see. I don't mind using win32api if there's not a function in
> the standard libraries.
>
> Alan
>
>
> _______________________________________________
> Tutor maillist - Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
>
--
Lloyd Kvam
Venix Corp.
1 Court Street, Suite 378
Lebanon, NH 03766-1358
voice: 603-443-6155
fax: 801-459-9582
More information about the Tutor
mailing list