in reply to FTP: Unable to close datastream

FWIW, I was running into this very same issue. On large files from one ftp server, I'd get a "Unable to close datastream" warning (which, since 'get' returned undef, was interpreted as an error), yet, the entire file was downloaded. I just ended up working around the problem, making sure local and remote file sizes matched.

Also, command line ftp seemed to download fine without error or warning.