I have a task to create a node.js script that listens in a directory for new archive files to arrive and process them.
I see that I can do this with
The files are
tar.gz archives, that arrive via
The problem is that the arrival of a new archive file seems to create multiple (the exact number is unpredictable) events in the file-system. The first is a
rename, followed by some number of
I need to reliably trigger my processing logic only once, when the archive is finished being transferred. How can this be done?