set_types
Specifies the extensions of the file types to ingest in a comma-separated list of file extensions.
Member of namespace
mvscanSyntax
bool set_types (string extensions)
Parameters
- extensions
- Type: string
- Comma-separated list of file image file extensions to import
Parameters
String value of extension(s) of input files that should be ingested. For multiple types, separate each one with a comma. Any files with extensions not in this list are ignored. A smart parameter that evaluates to a file extension or list of extensions is accepted.It is optional to include a period before each extension. The parameter is not case-sensitive.
Returns
Always True.Level
Batch level Open event only.Details
Uses the value of a file extension(s) to specify the type of files the task will scan.This is an optional action: the task will scan .tif files by default. For this action to take effect, it must be called before the scan action.
This action overrides any previous call to set_metadata_types(), and causes files to be ingested without metadata.
- Example:
set_types("tif,tiff,pdf") scan()This sequence ingests files ending with .tif, .tiff, and .pdf.