dhunter/core/file_hash_cache.py
def replace(self, file_hash: FileHash) -> bool:
        """Replaces existing FileHash entry with new one or just adds new entry if no file_hash is cached yet.
        :returns indicating if FileHash was replaced (True), or just added (False)
        """
        replaced = False
        if file_hash.name in self._cache:
            del self._cache[file_hash.name]
            replaced = True

        self.add(file_hash)

        return replaced
Replaces existing FileHash entry with new one or just adds new entry if no file_hash is cached yet.
        :returns indicating if FileHash was replaced (True), or just added (False)
        
Replaces existing FileHash entry with new one or just adds new entry if no file_hash is cached yet.
:returns indicating if FileHash was replaced (True), or just added (False)
Replaces existing FileHash entry with new one or just adds new entry if no file_hash is cached yet . : returns indicating if FileHash was replaced ( True ) or just added ( False )
def replace(self, file_hash: FileHash) -> bool:
        replaced = False
        if file_hash.name in self._cache:
            del self._cache[file_hash.name]
            replaced = True
        self.add(file_hash)
        return replaced
def replace ( self , file_hash : FileHash ) -> bool : replaced = False if file_hash . name in self . _cache : del self . _cache [ file_hash . name ] replaced = True self . add ( file_hash ) return replaced
Replaces existing FileHash entry with new one or just adds new entry if no file_hash is cached yet.
Replaces existing FileHash entry with new one or just adds new entry if no file_hash is cached yet .
"""Replaces existing FileHash entry with new one or just adds new entry if no file_hash is cached yet.
        :returns indicating if FileHash was replaced (True), or just added (False)
        """
self
file_hash
FileHash