I have a WebJob that works fine with a FileTrigger pointing to a specific directory but I would like to monitor files added to all directories underneath it:
data
|_ dir one (file added here)
|_ dir two (file added here)
I currently have the trigger set up as:
[FileTrigger(@"data\{name}", "*", WatcherChangeTypes.Created, autoDelete: true)] string message,
I can only add one trigger (which makes absolute sense) and the following doesn't work either:
@"data\*\{name}"
What will be the best way to monitor those directories from a single WebJob?