Skip to content
Snippets Groups Projects
Commit 15dc2c72 authored by Your Name's avatar Your Name
Browse files

Reorganized output directories

parent 91ba2663
No related branches found
No related tags found
No related merge requests found
Generated HTML pages are stored here
JSON scan summaries are stored here
Individual scan tool logs are dumped here
......@@ -79,7 +79,7 @@ class ResultsSummary:
print(self.outcomes)
def dump_outcomes(self, file_name: str):
file_path = "json_dumps/" + file_name + ".json"
file_path = "../outputs/json_dumps/" + file_name + ".json"
with open(file_path, "w") as fp:
json.dump(self.outcomes, fp)
......
......@@ -155,7 +155,7 @@ class ScanRunner:
dt = datetime.now()
ts = datetime.timestamp(dt)
dir_name = "scan_run_" + str(ts)
dir_name = "../outputs/logs/scan_run_" + str(ts)
os.mkdir(dir_name)
......
......@@ -95,7 +95,7 @@ def write_html_to_file(file_name: str, output_value: str):
:param output_dir: Directory where log will be stored
:param output_value: Content written to given file
"""
file_name = "generated_html/" + file_name + ".html"
file_name = "../outputs/generated_html/" + file_name + ".html"
with open(file_name, "w") as text_file:
text_file.write(output_value)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment