Skip to content

Commit 55e8861

Browse files
authored
#46: Fix multiple script downloads
1 parent 85f06ad commit 55e8861

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mkdocs_markmap/utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ def download(base_path: Path, url: str, flat: bool = False, force_reload: bool =
2121
sub_path += extname
2222
file_path: Path = base_path / sub_path
2323

24+
if file_path.exists():
25+
return str(sub_path)
2426

2527
file_path.parent.mkdir(parents=True, exist_ok=True)
2628
if force_reload or not file_path.exists():

0 commit comments

Comments
 (0)