Uploaded image for project: 'Commons VFS'
  1. Commons VFS
  2. VFS-599

Duplicate FileCreated events are getting fired when copying the same file over and over

    XMLWordPrintableJSON

Details

    • Important

    Description

      Hi Team,
      We have implemented a FilePoller class which polls a particular directory and moves the files to some other directory upon receipt of the files.

      It is working fine in both Windows and RHEL when we drop different files in the affected directory. However, when we copy the same file over and over it is creating duplicate "fileCreated" events and duplicate events are failing because the original event is moving the files to different directory by the time duplicate event gets fired automatically.

      I have attached the Java class which is implemented.

      Please check and suggest us an approach to avoid this.

      Thanks,
      Raghavendra

      Attachments

        1. FilePoller.java
          8 kB
          Raghavendra

        Activity

          People

            Unassigned Unassigned
            rdesoju@gmail.com Raghavendra
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: