def METHOD_NAME(self, path):
    if os.path.exists(path):
        if not self.overwrite:
            raise Exception("Directory already exists and overwrite is false for %s" % path)
        else:
            shutil.rmtree(path)
    os.makedirs(path, exist_ok=True)