Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Watching directory for changes Java7

 
Marco Zanini
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi to all, I'm developing a program in order to recursively watch a directory for changes. The program works fine but when I copy a directory with a lot of files inside some of them are just missed and the overflow event is never raised. Here's my code, the watchDog puts every event in a blockinQueue read by the farmer.



This is the Farmer:


Has anyone tried to use this service and had similar problems? I searched trough the internet but wasn't able to find anything.

Thanks
 
Marco Zanini
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any hints?

Thank you
 
Marco Zanini
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I probably found out why WatchDog is missing some events when I add a directory containing a bunch of files, the problem is that the new directory has to be registered and in the meantime some events are gone. What can I do?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!