Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
...@@ -468,8 +468,9 @@ sub fetch_files { ...@@ -468,8 +468,9 @@ sub fetch_files {
} }
} }
printf( "Fetching '%s' (size = %d)\n", printf( "Fetching '%s' (size = %s)\n",
$remote_file, $ftp->size($remote_file) ); $remote_file,
$ftp->size($remote_file) || '(unknown)' );
printf( "Local file is '%s'\n", $file_path ); printf( "Local file is '%s'\n", $file_path );
$ftp->binary(); $ftp->binary();
......
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