fix: [urlscan] create cache directory for response

pull/348/head
Raphaël Vinot 2022-02-03 13:28:48 +01:00
parent 43a29f5781
commit 34d435e999
1 changed files with 1 additions and 0 deletions

View File

@ -152,6 +152,7 @@ class UrlScan():
self.storage_dir_urlscan,
f'{capture_info["url"]}{capture_info["user_agent"]}{capture_info["referer"]}',
'response')
url_storage_dir_response.mkdir(parents=True, exist_ok=True)
if (url_storage_dir_response / f'{uuid}.json').exists():
with (url_storage_dir_response / f'{uuid}.json').open() as _f:
return json.load(_f)