hi i want a suggession for my Perl code.
i am coding a Perl script that downloads updated copies of files from a ftp site ; For the first time it will download all the files. And for every next execution of this script it will check the local copies of the files with corresponding remote files on ftp site. If the file size mismatch of the copies mismatch then the script downloads the remote file otherwise not. So currently I am using criteria of file size to check if the remote copy is updated. But that is bug prone ; as sometimes it might happen that the remote copy is modified but still the size is not changed. In that case my script will assume that the remote ftp copy is not modified ; because it will decide that just on the basis of file size. I want to change this critera ; I wanto use criteria with the combination of file creation data,time + file size. The problems involved in this approach is that I am using Net::FTP package for ftp functions. And whenever I download any file from ftp site using get($filename) function ; the file is downloaded but the file date and time is set as per current system date and time. I want to retain time and size of the remote file even after they are downloaded. If you have any other idea of checking for updated files ; let me know. That would help me. Also pls let me know how to get file date and time of remote as well as local file. Thanks -Jim -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
