The local observed file is specified by a directory path and file name pattern.
The remote observed file is specified by a URL, credentials and file name pattern.
The user may specify just one exact file name or file name pattern for observing more matching files in specified directory. If there are more changed files matching the pattern, separated event is triggered for each of these files.
There are three ways how to specify file name pattern of observed file(s):
You specify the exact name of the observed file.
You can use wildcards common in most operating systems (*, ?, etc.)
* - Matches zero or more instances of any character
? - Matches one instance of any character
[...] - Matches any of characters enclosed by the brackets
\ - Escape character
*.csv - Matches all CSV files
input_*.csv - Matches i.e. input_001.csv, input_9.csv
- Matches i.e. input_001.csv, but does not match input_9.csv
(.*?)\.(jpg|jpeg|png|gif)$ - Matches image files
It is strongly recommended to use absolute paths with placeholders. It is possible to use a relative path, but the working directory depends on an application server.
Use forward slashes as file separators, even on MS Windows. Backslashes might be evaluated as escape sequences.