

def _get_cp_dir(self, temporary):
    'Return the proper reverter directory.'
    if temporary:
        cp_dir = self.config.temp_checkpoint_dir
    else:
        cp_dir = self.config.in_progress_dir
    le_util.make_or_verify_dir(cp_dir, constants.CONFIG_DIRS_MODE, os.geteuid(), self.config.strict_permissions)
    return cp_dir

dataset/ETHPy150Open letsencrypt/letsencrypt/certbot/reverter.py Reverter._get_cp_dir/original