Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions sphinxdocs/sphinxdocs/private/sphinx_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,11 @@ def _copy_dir(self, src: pathlib.Path, dest: pathlib.Path) -> None:
"""Recursively creates destination directory and submits tasks for its entries."""
try:
dest.mkdir(parents=True, exist_ok=True)
dest_path = dest.resolve()
with os.scandir(src) as scanner:
for entry in scanner:
if pathlib.Path(entry.path).resolve() == dest_path:
continue
c_dest = dest / entry.name
c_src = pathlib.Path(entry.path)
if entry.is_dir():
Expand Down
Loading