Skip to content

Commit 0ddb967

Browse files
authored
Merge pull request #470 from RhinoSecurityLabs/fix-directory-creation
Fix directory creation error on dynamodb__enum
2 parents 5cbdb01 + c1f7be8 commit 0ddb967

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pacu/modules/dynamodb__enum/main.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ def summary(data, pacu_main):
157157

158158
def writeTableData(directory, table, data):
159159
if not os.path.exists(directory):
160-
os.mkdir(directory)
160+
os.makedirs(directory, exist_ok=True)
161161
path = os.path.join(directory, table + '.txt')
162162
with open(path, 'w+') as writeTableDump:
163163
writeTableDump.write(pprint.pformat(data))

0 commit comments

Comments
 (0)