def _check_directory_param(self, params, field): path = self._check_required_string_param(params, field) if (not ut.is_dir(path)): raise PT_NotFoundError(self.name, field) return path
def _check_path_param(self, name, value): if (not ut.is_dir(value)): raise PT_ParameterError(self.name, name, value)