def resetWork(self):
        if os.path.exists(self.workDir):
            util.rmtree(self.workDir)
        if os.path.exists(self.workDir):
            raise IOError, '%s exists but must not!' %self.workDir
        util.mkdirChain(self.workDir)
dataset/ETHPy150Open sassoftware/conary/conary_test/rephelp.py/RepositoryHelper.resetWork/original