Skip to content

Commit

Permalink
tools: make directory regardless of existing (#1333)
Browse files Browse the repository at this point in the history
Signed-off-by: David Korczynski <david@adalogics.com>
  • Loading branch information
DavidKorczynski authored Dec 9, 2023
1 parent 10c30a6 commit c574e8f
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -268,8 +268,7 @@ def rename_annotated_cfg(original_annotated_cfg):


def save_fuzz_introspector_report(introspector_report, project_name, date_str):
if not os.path.isdir(DB_RAW_INTROSPECTOR_REPORTS):
os.mkdir(DB_RAW_INTROSPECTOR_REPORTS)
os.makedirs(DB_RAW_INTROSPECTOR_REPORTS, exist_ok=True)

report_dst = os.path.join(DB_RAW_INTROSPECTOR_REPORTS,
'%s-%s.json' % (project_name, date_str))
Expand Down

0 comments on commit c574e8f

Please sign in to comment.