Bug in shutil.rmtree?

Scott Taylor foobarickknob at yahoo.com
Sat Aug 11 19:06:34 EDT 2001


I'm using shutil.rmtree on W2K, and the way it's acting doesn't seem
to jive w/ the docs.  Isn't the second param to rmtree supposed to
ignore any errors if it runs across any?

shutil.rmtree( 'c:\\foobartest', 1 ) gives me this exception...

WindowsError: [Errno 3] The system cannot find the path specified:
'foobartest'

... if c:\\foobartest doesn't exist.  Shouldn't I not get an exception
if the second param is true?

Thanx!

Scott



More information about the Python-list mailing list