updated the code to copy the permission of some files