- checks if the file already exists and if it does, compares its contents with the input file, if contents differ, deletes existing file
- checks if the file already exists and if it does, compares its contents with the input file, if contents differ, deletes existing file