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

Set FTP transfer to binary earlier.

parent de87e27e
......@@ -437,6 +437,8 @@ sub fetch_files {
return ();
}
$ftp->binary();
foreach my $remote_file ( ( @{ $ftp->ls() } ) ) {
if (
!match_glob( basename( $uri->path() ), $remote_file
......@@ -473,7 +475,6 @@ sub fetch_files {
$ftp->size($remote_file) || '(unknown)' );
printf( "Local file is '%s'\n", $file_path );
$ftp->binary();
if ( !$ftp->get( $remote_file, $file_path ) ) {
printf( "==> Could not get '%s': %s\n",
basename( $uri->path() ),
......
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