Specifying Auxiliary Data Files

After a new file matching the main data file specification is discovered and uploaded, any files matching the auxiliary files specification are also uploaded. The auxiliary files specification is a set of file globs separated by semicolons.

This page discusses:

Rules for Auxiliary File Glob Patterns

  • Spaces are important. For client gateway running on RHEL, the case is also important.
  • The glob pattern is matched from the directory containing the main data file. Relative directory navigation (for example, “./reports“) is supported.
    Note: Navigation above the level of the main directory is technically supported. However, access rights to those directories could be important.
  • Navigation above the level of the main directory is technically supported. However, access rights to those directories could be important.
    Pattern Description
    * Matches 0 or more characters in a single path portion.
    ? Matches 0 or more characters in a single path portion.
    […] Matches a range of characters, similar to a regular expression range. If the first character of the range is ! or ^ then it matches any character not in the range.
    $pattern The specification must return at least 1 file based on the pattern for a successful file transfer. If no files are found that match, an error is recorded for the transfer.
    *(pattern|pattern|...) Matches zero or more occurrences of the patterns provided.
    +(pattern|pattern|...) Matches zero or more occurrences of the patterns provided.
    ?(pattern|pattern|...) Matches zero or one occurrence of the patterns provided.
    !(pattern|pattern|...) Matches anything that does not match any of the patterns provided.
    @(pattern|pattern|...) Matches exactly one of the patterns provided.
    ** Matches exactly one of the patterns provided.
  • In addition to the base glob patterns, dynamic substitution of components of the main file may be used in a glob specification:
    Pattern Description
    [mainfile.name] Main file base name with no extension.
    [mainfile.base] Main file base name including the file extension.
    [mainfile.ext] Main file extension.
    [mainfile.dir] Main file directory.

    Note: This is seldom required since the auxiliary files are always processed from the main file directory.

Auxiliary File Specification Examples

A CSV main file with a required PDF auxiliary file in the same directory:

  • Main Data File: /tga/*.csv
  • Auxiliary Files: $[mainfile.name].pdf

A CSV main file with any number of additional files with other extensions in a ‘report’ subdirectory:

  • Main Data File: /tga/*.csv
  • Auxiliary Files: ./report/[mainfile.name].*