[cppcheck-htmlreport] Use makedirs instead of mkdir to create report_dir to allow recursive creation of the full directory path (#1829)

This commit is contained in:
Martin Herren 2019-05-11 09:50:28 +02:00 committed by Daniel Marjamäki
parent 9567076845
commit 8298937077
1 changed files with 1 additions and 1 deletions

View File

@ -444,7 +444,7 @@ if __name__ == '__main__':
# Make sure that the report directory is created if it doesn't exist. # Make sure that the report directory is created if it doesn't exist.
print('Creating %s directory' % options.report_dir) print('Creating %s directory' % options.report_dir)
if not os.path.exists(options.report_dir): if not os.path.exists(options.report_dir):
os.mkdir(options.report_dir) os.makedirs(options.report_dir)
# Generate a HTML file with syntax highlighted source code for each # Generate a HTML file with syntax highlighted source code for each
# file that contains one or more errors. # file that contains one or more errors.