in reply to File Rename

Since I don't know whether or not you have control over the application that is doing the FTP or not, this may or may not be valid...
But if you are coding the ftp portion of the application, you could change the file name during the transfer instead of after the fact.
An example using Net::FTP...
use Net::FTP; my $mytime = localtime; my $file = "filea" # Set up the FTP my $ftp = new Net::FTP; $ftp->login('name', 'password'); # If you're putting the file somewhere... $ftp->put($file, "$file$mytime"); # Or if you're getting the file from somewhere... $ftp->get($file, "$file$mytime"); $ftp->close();
Net::FTP allows you to specify a new name and location for a file when you are getting or putting a file - I would assume other FTP methods/modules would do the same.
Rich36
There's more than one way to screw it up...