def delfile(self, file): if self.verb: print "Deleting file %s" % file fullfile = os.path.join(self.wcpath, file) if os.path.isfile(fullfile): os.unlink(fullfile) else: util.safeexec("rm", ['-rf', fullfile])
def cleanup(self): if not (self.tmpdir is None): util.safeexec("rm", ["-rf", self.tmpdir]) self.tmpdir = None