SERVER.WRITEFILE should copy stat from dest file