only write a file if it has changed