import os
from typing import Any, Optional
-import predicate
import file_utils
-class DirectoryFileFilter(predicate.Predicate):
+class DirectoryFileFilter(object):
"""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.
mem_hash.update(item)
md5 = mem_hash.hexdigest()
return md5 not in self.all_md5s
-