The perl::ftp's mdtm method returns the last mod date of a specified remote file. We've found that on our sftp server, the last mod date is often earlier than the date and time the file is actually received. We need to record the date received, but what we are getting is (i believe) the file's creation date on some remote server. What we want is the date and time the file is placed on our server.
Here's the current syntax used:
my $FtpGMTimeInt = $FTP->mdtm($FtpFromFile);
Any suggestions?