addFiles helper to copy files detected during transformation