get-definitions: don't create dirs breaking ntfs
This commit is contained in:
parent
ba27b4cd9a
commit
5fb2c37142
|
@ -89,7 +89,7 @@ def process_definition_page(soup, form, variant):
|
||||||
|
|
||||||
|
|
||||||
def save_definition(name, variant, content):
|
def save_definition(name, variant, content):
|
||||||
def_dir = Path.cwd() / name
|
def_dir = Path.cwd() / name.rstrip(".") # fucking ntfs
|
||||||
def_dir.mkdir(exist_ok=True)
|
def_dir.mkdir(exist_ok=True)
|
||||||
def_file_path = def_dir / f"{variant}.txt"
|
def_file_path = def_dir / f"{variant}.txt"
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue