title: FileSystemWatcher: Ignore temporary and ghost files created
body: <p>I have implemented a watcher service in java which monitors folders for changes. Whenever a word file gets created,modified or deleted, it creates a lot of temporary files and ghost files. My question is how to ignore these files? I tried to see if they are hidden files, but they are not. I want a solution which works with all kind of applications not just microsoft word. </p>
  
  <p>Thanks</p>