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



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?

FTPdata
   CompanyA
      inbound
      outbound
   CompanyB
      inbound
      outbound
   CompanyC
      inbound
      outbound
   ...
Back to top
 
 
IP Logged
 
Gert
YaBB Administrator
*****
Offline



Posts: 2238
The Netherlands
Re: how to monitor *\inbound sub-folders only
Reply #1 - Sep 24th, 2017 at 6:51am
 
Hi,

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

See http://www.watchdirectory.net/wdhelp/help/edit_filter.html
Back to top
 

Gert Rijs - gert (at) gdpsoftware (dot) com
Blog: http://blog-en.gdpsoftware.com/
End Alzheimer's: http://www.alz.org&&...
WWW WWW GdPSoftware  
IP Logged
 
Page Index Toggle Pages: 1