diff --git a/onc/+onc/OncDelivery.m b/onc/+onc/OncDelivery.m index bc35aae..e99e2f8 100644 --- a/onc/+onc/OncDelivery.m +++ b/onc/+onc/OncDelivery.m @@ -275,7 +275,7 @@ end % get metadata if required - if getMetadata + if getMetadata & ~isempty(fileList) dpf = onc.DataProductFile(runId, 'meta', baseUrl, token, this.showInfo); status = dpf.download(timeout, this.pollPeriod, outPath, maxRetries, overwrite); if status ~= 200