Suri Chitti wrote:
> If I have a directory /u01/qa/logs and the logs has a number of children 
> directories and I want to remove everything in logs and logs itself, is 
> there a single method or command to do that?  I want to avoid 
> recursively removing the files in each child directory and so on.

shutil.rmtree() (which actually does recursively remove all the children)

Kent

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to