if ( $ftp->size($remoteFileName) <> -s $localFileName) { die "file size mismatch\n"; }