Commit e390b4dc authored by Andreas Kusalananda Kähäri's avatar Andreas Kusalananda Kähäri
Browse files

Display "(unknown)" when FTP file size is not known.

parent 1c4eec77
......@@ -468,8 +468,9 @@ sub fetch_files {
}
}
printf( "Fetching '%s' (size = %d)\n",
$remote_file, $ftp->size($remote_file) );
printf( "Fetching '%s' (size = %s)\n",
$remote_file,
$ftp->size($remote_file) || '(unknown)' );
printf( "Local file is '%s'\n", $file_path );
$ftp->binary();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment