Reduce allocations in fs::copy_files_except_ext
#2355
Merged
fs::copy_files_except_ext
#2355