Skip to content

Commit 178d67e

Browse files
committed
Create detections subdirs
1 parent 1f9f10b commit 178d67e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

contentctl/actions/initialize.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,10 @@ def execute(self, config: test) -> None:
2020
if config.bare:
2121
#Create the following empty directories:
2222
for emptyDir in ['lookups', 'baselines', 'docs', 'reporting', 'investigations', 'app_template',
23-
'deployments', 'detections', 'data_sources', 'macros', 'stories']:
23+
'deployments', 'detections/application', 'detections/cloud', 'detections/endpoint',
24+
'detections/network', 'detections/web', 'data_sources', 'macros', 'stories']:
2425
#Throw an error if this directory already exists
25-
(config.path/emptyDir).mkdir(exist_ok=False)
26+
(config.path/emptyDir).mkdir(exist_ok=False, parents=True)
2627

2728
else:
2829
#Create the following empty directories:

0 commit comments

Comments
 (0)