[Tutor] Delete directories recursively

Amresh Kulkarni amresh.kulkarni at gmail.com
Fri Jun 16 17:26:34 CEST 2006


I need to delete a directory and its sub directories. However all dir's, sub
dir;s and files have read only access. How do i do this efficeintly using
the os.walk command.
I cannot run this command on the dir as it gives me an error due to the read
only attribute. Is there any other way to do this?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20060616/7d787a1c/attachment.htm 

More information about the Tutor mailing list