@Thierry Vernhet
The ListFile processor will list all non-hidden file it sees in the target directory. It then will record the latest timestamp of batch of files it listed in state management. This timestamp is what is used to determine what new files to list in next run. Since the timestamp has changed, the same file will be listed again.
A few suggestion in preferred order would be:
1. Change how files are being written to this directory.
- The ListFile processor will ignore and hidden files. So File being written as ".myfile.txt" will be ignored until the filename has changed to just "myfile.txt".
2. Change the "Minimum File Age" setting on the processor to a high enough value to allows source system to complete file writes to this directory.
3. Add a detectDuplicate processor after your listFile processor to detect duplicate listed files and remove them from the your dataflow before the FetchFile processor.
Thanks,
Matt