Fileset mask
The Fileset protocol supports the use of "*" as a wildcard for inbound file names. Specifying a file mask, for example, *.dat in File Mask configures the Fileset inbound protocol to process only files that match the specified mask.
The Inbound pane of the Fileset/FTP Local Protocol Properties dialog box has a File Mask field. Specifying a value configures the protocol to process only files that match the mask. If this field is blank, then all found files are processed.
When
is selected, the file mask is treated as case sensitive. the default is cleared.When
is selected, the engine processes the file mask as a regular expression instead of a basic pattern.When this is selected, any text that is specified in File Mask is validated for correct regular expression syntax. If the validation fails, then the user is notified and the configuration cannot be saved.
If
is selected, then is disabled.Protocol settings are stored in NetConfig. Debug logging displays a list of files found that matches the file mask.
Configuration
To specify a file mask, configure the item in NetConfig with the IBFILEMASK key name:
{ IBSTYLE nl }
{ IBFILEMASK *.dat }
{ IBFILEMASKTYPE 0 }
{ IBFILEMASKCASE 0 }
{ LISTFULLDIR 0 }
For IBFILEMASK
,the file mask string can be any string that excludes
spaces. Spaces can cause unexpected errors.
For example, *.dat, test*, test*.dat, or t?st.dat, ^\\d+.dat.
Only "*
" and "?
" are supported as wildcard .
The file mask string also can be a regular expression such as ^\\d+.dat
.
IBFILEMASKTYPE
indicates if this mask uses a wildcard or regular
expression.
- "0" indicates a wildcard.
- "1" indicates regular expression.
IBFILEMASKCASE
indicates if the mask is sensitive to case. This
configuration works only for wildcard. Regular expression is always case sensitive.
- "0" indicates not case sensitive,
- "1" indicates case sensitive.
You can use hcinetcheck to verify the configuration.
If this item is blank, then all the files in IBDIR
are added to inbound file list without restriction.
Usage example
An Integration Engineer has the task of configuring Fileset-local with a file mask.
The Fileset-local protocol is configured to process only files ending with .dat.
A new thread is created and fileset-local is selected as the protocol.
The Fileset/FTP Local Protocol Properties dialog box.
button is clicked to display theFrom the dialog box, the correct directory is specified and .dat is used as the file mask.