- How to monitor multiple files
For the file trigger, you can use wildcards ("*") to monitor multiple files.
For example, if you want to monitor all files that are created under "/ data / filetrigger /", please specify as follows:
/data/filetrigger/*
When the multiple files are created in the target directory after specifying as above, it executes the script that is specified in the file trigger for each created file.
- How to get the file information that triggered the file trigger
When you want to specify the created file in the script that is started by file trigger, please use the trigger variable of the file trigger.
You can get the file name of the file that triggered it with "trigger.filename". Also, you can get the file path of the file that triggered it with "trigger.filepath".
In order to pass the value to the script, after setting the script input variable in the script specified in the file trigger, please set the above trigger variable in the script input variable at the "script argument" of the "execution content settings" screen of the file trigger.
Please refer to the help of reference about the trigger variable of the file trigger.
Reference Information