Pastebin
Paste #2577: None
< previous paste - next paste>
Pasted by tdn@malbec
def rm_rf(self, d):
self.print_debug("rm_rf: Removing %s", d)
for path in (os.path.join(d,f) for f in os.listdir(d)):
if os.path.isdir(path):
self.rm_rf(path)
else:
os.unlink(path)
os.rmdir(d)
New Paste
Go to most recent paste.