diff --git a/xnat_ingest/cli/upload.py b/xnat_ingest/cli/upload.py index c8a9fb0..04f4282 100644 --- a/xnat_ingest/cli/upload.py +++ b/xnat_ingest/cli/upload.py @@ -104,7 +104,7 @@ "specified in a column or not. Specified using the scan types IANA mime-type or " "fileformats \"mime-like\" (see https://arcanaframework.github.io/fileformats/), " "e.g. 'application/json', 'medimage/dicom-series', " - "'image/jpeg'). Use 'core/file-set' to include all file-types in the session" + "'image/jpeg'). Use 'all' to include all file-types in the session" ), ) @click.option( diff --git a/xnat_ingest/session.py b/xnat_ingest/session.py index dfcaa1f..3a53531 100644 --- a/xnat_ingest/session.py +++ b/xnat_ingest/session.py @@ -138,7 +138,10 @@ def select_resources( uploaded = set() for mime_like in always_include: - fileformat = from_mime(mime_like) + if mime_like == "all": + fileformat = FileSet + else: + fileformat = from_mime(mime_like) for scan in self.scans.values(): for resource_name, fileset in scan.resources.items(): if isinstance(fileset, fileformat):