"""A predicate that will return False if when a proposed file's
content to-be-written is identical to the contents of the file;
skip the write.
"""
"""A predicate that will return False if when a proposed file's
content to-be-written is identical to the contents of the file;
skip the write.
"""
if not file_utils.does_directory_exist(directory):
raise ValueError(directory)
self.directory = directory
if not file_utils.does_directory_exist(directory):
raise ValueError(directory)
self.directory = directory
self._update_file(path, mtime)
def _update_file(self, filename: str, mtime: Optional[float] = None):
self._update_file(path, mtime)
def _update_file(self, filename: str, mtime: Optional[float] = None):