Forum: Python Jul 23rd, 2009 |
| Replies: 6 Views: 284 try shutil.rmtree(dir) instead of os.rmdir(dir)
you will have to import 'import shutil' |
Forum: Python Jul 23rd, 2009 |
| Replies: 6 Views: 284 shutil.rmtree will remove non-empty directories.
shutil.rmtree(path[, ignore_errors[, onerror]])ΒΆ
Delete an entire directory tree; path must point to a directory (but not a symbolic link to... |