in reply to File::Copy - move() function corrupting files
I don't know if the problem is due to moving PDF files when they're open or not. But if that's the problem, then I suggest you create the PDF files with a bogus extension (such as .WORK). After the file is successfully completed and closed, you can then rename it from XYZ.WORK to XYZ.PDF. This will prevent your program from detecting and working with PDF files before they're ready to go. (I use the same trick for file generators to prevent an FTP process from sending the file before it's complete.)
As I said, I don't know if that's your problem, though.
...roboticus
When your only tool is a hammer, all problems look like your thumb.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: File::Copy - move() function corrupting files
by myelinviolin (Novice) on Aug 25, 2014 at 16:11 UTC | |
by afoken (Chancellor) on Aug 26, 2014 at 20:22 UTC |