Skip to content

Commit 8298937

Browse files
MartinHerrendanmar
authored andcommitted
[cppcheck-htmlreport] Use makedirs instead of mkdir to create report_dir to allow recursive creation of the full directory path (cppcheck-opensource#1829)
1 parent 9567076 commit 8298937

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

htmlreport/cppcheck-htmlreport

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ if __name__ == '__main__':
444444
# Make sure that the report directory is created if it doesn't exist.
445445
print('Creating %s directory' % options.report_dir)
446446
if not os.path.exists(options.report_dir):
447-
os.mkdir(options.report_dir)
447+
os.makedirs(options.report_dir)
448448

449449
# Generate a HTML file with syntax highlighted source code for each
450450
# file that contains one or more errors.

0 commit comments

Comments
 (0)