WatchDirectory home page
WatchDirectory Startseite (Deutsche Version)
Site WatchDirectory (Français)
  Welcome, Guest. Please Login or Register
YaBB - Yet another Bulletin Board
Page Index Toggle Pages: 1
how to monitor *\inbound sub-folders only (Read 234 times)
YaBB Newbies

Posts: 8
how to monitor *\inbound sub-folders only
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?

Back to top
IP Logged
YaBB Administrator

Posts: 2259
The Netherlands
Re: how to monitor *\inbound sub-folders only
Reply #1 - 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

Back to top

Gert Rijs - gert (at) gdpsoftware (dot) com
End Alzheimer's:
WWW WWW GdPSoftware  
IP Logged
Page Index Toggle Pages: 1