in reply to Testing file transfer completeness

How are the files being transfered? The most reliable solution is to transfer to a temporary filename and have the client rename it to the proper filename upon completion. rsync, for example, does this automatically during transfers.

If you cannot control the file names adequately, (say people are FTP'ing the files in) and you are on a linux box, you could check the output of lsof and see if the file is still open by any process.

Matt