How to copy files maintaining all file attributes