'Return the proper reverter directory.'

def _get_cp_dir(self, temporary):

    if temporary:
        cp_dir = self.config.temp_checkpoint_dir
    else:
        cp_dir = self.config.in_progress_dir
    util.make_or_verify_dir(cp_dir, constants.CONFIG_DIRS_MODE, os.geteuid(), self.config.strict_permissions)
    return cp_dir
