in reply to Re: Net::FTP incomplete downloads
in thread Net::FTP incomplete downloads

i didn't even think about the size() method. I was thinking it would be nice to have an md5 checksum, but that might do the trick. I'll have to code it up and test it.
There is a possibility that the files are being accessed while I'm downloading, but it would be read only. Would another process attempting to read the file abort the ftp download?

edit:
I tried invoking the size method in the script, and was met with this error:
Net::FTP=GLOB(0x8743d84)>>> HELP SIZE
so I login to the server manually and attempt the size command , and apparently the server doesn't support it. It's a vxworks (5.2.4) based system if that helps.

Replies are listed 'Best First'.
Re^3: Net::FTP incomplete downloads
by jweisgram (Novice) on Apr 23, 2008 at 21:37 UTC
    Perhaps you can retrieve a directory listing and get the file size from that. I'd try the "dir" method.