markmcmahon at my-deja.com
Tue Sep 19 18:27:03 CEST 2000
In article <oq3djps4p1.fsf at titan.progiciels-bpi.ca>,
=?ISO-8859-1?Q?Fran=E7ois_Pinard?= <pinard at iro.umontreal.ca> wrote:
> > Is there a deltree-like function in the Python standard library? I
> > been looking at os.removedirs(), but it won't delete non-empty
> > directories. I'd like to delete a whole tree, with files and
> > mixed, as rm -rf does in Unix. Any hint?
> Hello, Arkaitz. As others suggested, the simplest is to execute the
> command `rm -rf' from within your Python program.
- just one other note : NT does not have Deltree (mine doesnt anyway)
so even on windows either deltree(win9x) or rd /s(NTx) will be non
Sent via Deja.com http://www.deja.com/
Before you buy.
More information about the Python-list