Large files are transferred to a server for processing. The server monitors a specific directory using
incrond and when a new file is received the processing script is executed for that file.
Because the files are large it takes some time to transfer them. How do I make sure that the file has finished transferring before process it?