add setAttributes() for CopyFile