Someone is FTPing a file of size 10Mb to folder on a linux server.
While the file is in transition a cron wakes up and fires off a Perl script that is designed to look at the ftp folder and move whatever it finds there to some alternate folder. I'm using the move()
function from File::Copy. The Perl process actually renames the files as part of its task. Does that matter, or does the FTP not care what the file system describes the file as?
Will move()
succeed and move a partial file, leaving the FTP to do what?
Or will move fail and return 0?