class DirectoryFileFilter(object):
- """A predicate that will return False if when a proposed file's
+ """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.
"""
-
def __init__(self, directory: str):
- import file_utils
super().__init__()
+ import file_utils
if not file_utils.does_directory_exist(directory):
raise ValueError(directory)
self.directory = directory