I have a process that is writing PDFs to a directory. I have a Perl process that looks at this dorectory and moves the files to another directory. I am using the move command in File::Copy to move the files, but sometimes it moves a partially written file, resulting in an error on the other end. What is the best way to make sure a file is fully written before trying to move it?
I should add that this is happening in Windows and I don't have control of the process that his copying the file in.
Many Thanks...