Pastebin

Paste #2577: None

< previous paste - next paste>

Pasted by tdn@malbec

Download View as text

    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


Do not write anything in this field if you're a human.

Go to most recent paste.