MCPcopy Create free account
hub / github.com/blacklanternsecurity/bbot / _prep_output_dir

Method _prep_output_dir

bbot/modules/output/base.py:70–77  ·  view source on GitHub ↗
(self, filename)

Source from the content-addressed store, hash-verified

68 return is_incoming_duplicate, reason
69
70 def _prep_output_dir(self, filename):
71 self.output_file = self.config.get("output_file", "")
72 if self.output_file:
73 self.output_file = Path(self.output_file)
74 else:
75 self.output_file = self.scan.home / str(filename)
76 self.helpers.mkdir(self.output_file.parent)
77 self._file = None
78
79 def _scope_distance_check(self, event):
80 return True, ""

Callers 6

setupMethod · 0.80
setupMethod · 0.80
setupMethod · 0.80
setupMethod · 0.80
setupMethod · 0.80
setupMethod · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected