How to change a file's date/timestamp?
How do you change a file's last-modified date and timestamp in Python?
Re: How to change a file's date/timestamp?
> How do you change a file's last-modified date and timestamp in Python?
utime(path, (atime, utime))
Set the access and modified time of the file to the given values.
If the second form is used, set the access and modified times to the
This and many other functions are in the 'os' standard module, one
of the few very very widely used and useful modules... you should
read the online docs for it, along with "sys", and "time" at least,
before doing any more coding. ;-)
|All times are GMT. The time now is 06:02 AM.|
Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.