'Make sure the project_root is the proper structure before continuing.
This will leave it in the proper state for the single_project setting.'

def sanity_check(self):

    if (os.path.islink(self.project_root) and (not self.project.single_version)):
        self._log('Removing    single    version    symlink')
        os.unlink(self.project_root)
        safe_makedirs(self.project_root)
    elif (self.project.single_version and (not os.path.islink(self.project_root)) and os.path.exists(self.project_root)):
        shutil.rmtree(self.project_root)
    elif (not os.path.lexists(self.project_root)):
        safe_makedirs(self.project_root)
    if (not os.path.lexists(self.CNAME_ROOT)):
        safe_makedirs(self.CNAME_ROOT)
    if (not os.path.lexists(self.PROJECT_CNAME_ROOT)):
        safe_makedirs(self.PROJECT_CNAME_ROOT)
