Ensure per-network loot directories exist and refresh file pointers.
(self, data_stolen_dir, credentials_dir)
| 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) |
no test coverage detected