Unverified Commit 063c41f9 authored by boklm's avatar boklm
Browse files

Bug 40062: Copy input_files directories recursively

When an input_files is a directory, instead of passing each files
included in the directory individually to remote_put, we just pass the
directory and expect remote_put to copy it recursively.

Since in the case of container, each call to remote_put is a significant
overhead, this makes it much faster when including a directory
containing many files.
parent fb51b232
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1091,7 +1091,8 @@ sub input_files {
        my $file_type = -d $fname ? 'directory' : 'file';
        print "Using $file_type $fname\n";
        mkdir dirname("$dest_dir/$name");
        push @res_copy, recursive_copy($fname, $name, $dest_dir, $action);
        recursive_copy($fname, $name, $dest_dir, $action);
        push @res_copy, $name;
    }
    chdir $old_cwd;
    RETURN_RES: