(self)
return False
Return True if one (or more) of the files are corrupted.
Return True if one (or more) of the files are corrupted.
Return True if one ( or more ) of the files are corrupted .
def check_corrupted_files(self):
        """Return True if one (or more) of the files are corrupted."""
        for store in STORES:
            path = f"{self.system.config_path}/.storage/{STORES[store]}"
            if os.path.exists(path):
                if os.stat(path).st_size == 0:
                    # File is empty (corrupted)
                    return True
        return False
def check_corrupted_files ( self ) : for store in STORES : path = f"{self.system.config_path}/.storage/{STORES[store]}" if os . path . exists ( path ) : if os . stat ( path ) . st_size == 0 : # File is empty (corrupted) return True return False