Touching Files On Windows
David Bolen
db3l at fitlinxx.com
Wed May 16 20:48:09 EDT 2001
Ben <b.e.n. at .r.e.h.a.m.e...c.o.m> writes:
> Is there a way to touch files under windows using python? I can return
> the values as a tuple ... but it is immutable
>
> Any suggestions greatly appreciated.
Check out os.utime(). Note that you can't modify the creation time, but
that's all "touch" (at least in the Unix utility vein) does too.
--
-- David
--
/-----------------------------------------------------------------------\
\ David Bolen \ E-mail: db3l at fitlinxx.com /
| FitLinxx, Inc. \ Phone: (203) 708-5192 |
/ 860 Canal Street, Stamford, CT 06902 \ Fax: (203) 316-5150 \
\-----------------------------------------------------------------------/
More information about the Python-list
mailing list