Use pathclass.Path.makedirs.

This commit is contained in:
Ethan Dalool 2020-09-24 14:19:34 -07:00
parent d91fcf121b
commit 38e418f48c

View file

@ -387,7 +387,7 @@ def write_tag_pages(index, path=[]):
filepath = ['tags'] + [tag.name for tag in path] + ['index.html'] filepath = ['tags'] + [tag.name for tag in path] + ['index.html']
filepath = os.sep.join(filepath) filepath = os.sep.join(filepath)
filepath = writing_rootdir.join(filepath) filepath = writing_rootdir.join(filepath)
os.makedirs(filepath.parent.absolute_path, exist_ok=True) filepath.parent.makedirs(exist_ok=True)
page = make_tag_page(index, path) page = make_tag_page(index, path)