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
WatchService not picking up all files (Read 1174 times)
YaBB Newbies

Posts: 1
WatchService not picking up all files
Nov 17th, 2014 at 11:32am

I'm looking into errors in my application, and I can't figure out why can it be that the file watch is not picking up all new files? I've checked the file types and where the files are coming from, and there is no difference between theses files and the files which are picked up by the service.  Is it possible that the actual code in watch dir class file has an error?
If not, what are some other common causes of file watch not picking up all files?

Back to top
IP Logged
YaBB Administrator

Posts: 2268
The Netherlands
Re: WatchService not picking up all files
Reply #1 - Nov 17th, 2014 at 1:19pm
Hello Hutia,

It is unlikely WD is not seeing file changes...

What most likely *is* happening is that WD sees the new file and starting the task but the task can not handle it yet. For example the file is still in the process of being created (and therefor locked).

For that scenario, look at the settings of the "other" window:

Make sure you set "delay starting task" high enough (the default of a few seconds is fine most of the time). Also the "wait for files to be available" setting.

If the above does not help, enable "debug" and run the task until it misses an event again. Then stop the task and email (!!) me a backup. Full details are described here:
Back to top

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