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

Method _update_output_paths

shared.py:514–523  ·  view source on GitHub ↗

Switch scan result and vulnerability dirs to the active network's paths.

(self, scan_results_dir, vulnerabilities_dir)

Source from the content-addressed store, hash-verified

512 self.datastolendir = data_stolen_dir
513 if credentials_dir:
514 os.makedirs(credentials_dir, exist_ok=True)
515 self.crackedpwddir = credentials_dir
516 self.crackedpwd_dir = self.crackedpwddir # legacy attribute name used by web UI
517 self._refresh_credential_files()
518
519 def _update_output_paths(self, scan_results_dir, vulnerabilities_dir):
520 """Switch scan result and vulnerability dirs to the active network's paths."""
521 if scan_results_dir:
522 os.makedirs(scan_results_dir, exist_ok=True)
523 self.scan_results_dir = scan_results_dir
524 if vulnerabilities_dir:
525 os.makedirs(vulnerabilities_dir, exist_ok=True)
526 self.vulnerabilities_dir = vulnerabilities_dir

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected