MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / _update_loot_paths

Method _update_loot_paths

shared.py:503–512  ·  view source on GitHub ↗

Ensure per-network loot directories exist and refresh file pointers.

(self, data_stolen_dir, credentials_dir)

Source from the content-addressed store, hash-verified

501 try:
502 conn = sqlite3.connect(auth_db_path)
503 cursor = conn.cursor()
504 cursor.execute("SELECT COUNT(*) FROM auth")
505 count = cursor.fetchone()[0]
506 conn.close()
507 return count > 0
508 except Exception:
509 return False
510
511 def _refresh_network_components(self):
512 """Ensure dependent subsystems follow the current network context."""
513 self._configure_database()
514 if self.network_intelligence and self.network_intelligence_dir:
515 self.network_intelligence.set_storage_root(self.network_intelligence_dir)

Callers 1

Calls 1

Tested by

no test coverage detected