fix file copy

Merged Wout De Nolf requested to merge fix_file_copy into main

Merge request reports