WatchDirectory Forum
watchDirectory forums >> How to... >> WatchService not picking up all files

Message started by hutia on Nov 17th, 2014 at 11:32am

Title: WatchService not picking up all files
Post by hutia on 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?

Title: Re: WatchService not picking up all files
Post by Gert on 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:

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