WatchDirectory Forum
watchDirectory forums >> How to... >> how to monitor *\inbound sub-folders only

Message started by IPA on Sep 24th, 2017 at 5:40am

Title: how to monitor *\inbound sub-folders only
Post by IPA on Sep 24th, 2017 at 5:40am
I need to move files from the inbound sub-folders only in the structure below.  I built a single task to monitor the FTPdata folder and subfolders.  The list of companies changes and I prefer to use a dynamic or wildcard type of inclusion or exclusion.  I do not want a task for every company.
I do not want to have to manually add/remove another exclusion each time a company joins or departs.
How do you recommed I set this up?


Title: Re: how to monitor *\inbound sub-folders only
Post by Gert on Sep 24th, 2017 at 6:51am

On "Filter Events" you can create one filter that looks at the direct parent directory of the detected file. Something like
"When the Parent Directory equals inbound"
do not add a \, it matches on just the name of the parent directory.
This filter will match C:\FTPData\CompanyA\inbound\hello.txt

This will only work for files directly inside the inbound directory. If there can be subdirectories inside inbound you need the following filter:
"When the complete path contains \inbound\"
This will also match C:\FTPData\CompanyA\inbound\subdir\hello.txt


WatchDirectory Forum » Powered by YaBB 2.5.2!
YaBB Forum Software © 2000-2017. All Rights Reserved.