Quick question: recursive touch?

Siggy Brentrup bsb at olis.north.de
Tue Oct 5 18:39:41 EDT 1999


Preston Landers <prestonlanders at my-deja.com> writes:

> Sorry to answer my own question, but I wrote a primitive little
> implementation of my request pending discovery of 'the official
> version.'  Note that mine actually uses the unix touch command but it
> could easily be modified to use the more portable python open(file, "w")


[...]

As Aahz pointed out, open has malicious side effects. If you have
Python 1.5.2 (otherwise you really should upgrade), here's an quick
implementation which still has some minor shortcomings (cf comments)

CU
  Siggy

-- 
Siggy Brentrup - bsb at infodrom.north.de - voice: +49-441-6990134

############## http://oldenburger.linuxtage.de/ ###############
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rtouch.py
Type: application/octet-stream
Size: 2378 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/19991006/ba67ed9e/attachment.obj>


More information about the Python-list mailing list