Hi,
My aim is to do an automatic operation on files dropped into a directory over the network.
To be sure that no one try to modify that file during the execution of the operation, I want to move it from the drop area to another dir. With fs.watch I'm able to tell when a new file arrives with the rename event. The problem is when the transfer is not fast enough, I will get the event before the file has finished transfer.
So my question is : Is there a way to know if transfer is done before doing anything ?
Thanks for your answers,