Refresh file properties when replacing a file.