File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -111,6 +111,7 @@ def update_monthly_wiki_page(
111
111
year = year_month [:4 ]
112
112
monthly_page = wiki_dir / "monthly-files" / year / (year_month + ".md" )
113
113
if not monthly_page .exists ():
114
+ monthly_page .parent .mkdir (exist_ok = True )
114
115
monthly_page .write_text (MONTHLY_PAGE_HEADER )
115
116
LOGGER .info (f"Created monthly page: { monthly_page .relative_to (wiki_dir )} " )
116
117
@@ -165,7 +166,7 @@ def update_wiki(
165
166
year_month = get_manifest_year_month (manifest_file )
166
167
year = year_month [:4 ]
167
168
copy_to = wiki_dir / "manifests" / year / year_month / manifest_file .name
168
- copy_to .parent .mkdir (exist_ok = True )
169
+ copy_to .parent .mkdir (parents = True , exist_ok = True )
169
170
shutil .copy (manifest_file , copy_to )
170
171
LOGGER .info (f"Added manifest file: { copy_to .relative_to (wiki_dir )} " )
171
172
You can’t perform that action at this time.
0 commit comments