1 Reply Latest reply on Oct 11, 2010 4:38 AM by lvdberg

    Directory observer

    ckraus

      Hi everybody!


      Does anyone of you know an effective way of how to watch a directory for changes (new file created, file modified, ...)?
      The new JDK 7 offers the java.nio.file.ServiceWatcher which will do this job, but till now I do not know a smooth way doing this.


      Hope for cool ideas...


      Chris

        • 1. Re: Directory observer
          lvdberg

          Hi,


          If you don't need real-time: create a simple Quartz job which scans the directory and checks for changes with the different File methods.


          Leo