rm -rf in python?

Chad Netzer cnetzer at mail.arc.nasa.gov
Fri Nov 15 00:08:37 EST 2002


On Thursday 14 November 2002 20:32, VanL wrote:
> I suppose that I could recurse
> down through, deleteing as I went, but it seems that there must be an
> easier way.

Nope, there isn't.  (At least, not a portable way)

The good news is that you can write it recursively, and it'll be a small 
piece of code (don't follow soft-links, though. )

-- 
Bay Area Python Interest Group - http://www.baypiggies.net/

Chad Netzer
cnetzer at mail.arc.nasa.gov




More information about the Python-list mailing list