dhunter/core/file_hash_cache.py
def save(self) -> bool:
        """Saves FileHash hashes into flat file storage
        """
        if self._config.dont_save_dot_file:
            return True

        result = False
        if self._dirty:
            dot_file_name = os.path.join(self._path, Const.FILE_DOT_DHUNTER)

            with open(dot_file_name, 'w') as fh:
                fh.write('# {name} hash cache {url}\n'.format(name=Const.APP_NAME, url=Const.APP_URL))
                self.save_to_fh(fh)

                result = True

            self._dirty = False

        return result
Saves FileHash hashes into flat file storage
        
Saves FileHash hashes into flat file storage
Saves FileHash hashes into flat file storage
def save(self) -> bool:
        if self._config.dont_save_dot_file:
            return True
        result = False
        if self._dirty:
            dot_file_name = os.path.join(self._path, Const.FILE_DOT_DHUNTER)
            with open(dot_file_name, 'w') as fh:
                fh.write('# {name} hash cache {url}\n'.format(name=Const.APP_NAME, url=Const.APP_URL))
                self.save_to_fh(fh)
                result = True
            self._dirty = False
        return result
def save ( self ) -> bool : if self . _config . dont_save_dot_file : return True result = False if self . _dirty : dot_file_name = os . path . join ( self . _path , Const . FILE_DOT_DHUNTER ) with open ( dot_file_name , 'w' ) as fh : fh . write ( '# {name} hash cache {url}\n' . format ( name = Const . APP_NAME , url = Const . APP_URL ) ) self . save_to_fh ( fh ) result = True self . _dirty = False return result
Saves FileHash hashes into flat file storage
Saves FileHash hashes into flat file storage
"""Saves FileHash hashes into flat file storage
        """
self