Preserve file type on copy