[Tutor] removedirs ?
Ertl, John
john.ertl at fnmoc.navy.mil
Thu Dec 16 21:26:13 CET 2004
I am trying to remove a directory that has other directories and files in
it. I thought removedirs was supposed to do a recursive remove of files and
directories.
When I try it I get
>>> os.removedirs("DAF")
Traceback (most recent call last):
File "<pyshell#11>", line 1, in -toplevel-
os.removedirs("DAF")
File "/home/ertlj/ertljVersion/lib/python2.3/os.py", line 167, in
removedirs
rmdir(name)
OSError: [Errno 17] File exists: 'DAF'
Thanks,
John Ertl
More information about the Tutor
mailing list