Setting file creation date

Alex Martelli aleaxit at yahoo.com
Fri Aug 10 07:18:12 EDT 2001


"Fredrik Seehusen" <fse at npt.no> wrote in message
news:e77b4645.0108100226.4cfaf671 at posting.google.com...
> Hello,
>
> How do I set the creation date when opening a file, or override the
> creation date of a given file (... if it is possible in python)?
>
> This has to be done in Windows NT by the way :(

os.utime lets you set the accessed and modified dates, but I
don't think NT lets you change creation-date -- you'd have to
change your computer's date, create a new file copying the
old one, etc, etc, I suspect.


Alex






More information about the Python-list mailing list