Merge pull request #126 from davidxia/patch-1

copy symlinks in merger.py
This commit is contained in:
John Philip 2025-01-30 14:03:52 -05:00 committed by GitHub
commit 02fbd09129
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ class Merger:
dest_dir = os.path.join(self.temp_docs_dir.name, *split_alias)
if os.path.exists(source_dir):
copytree(source_dir, dest_dir, dirs_exist_ok=True)
copytree(source_dir, dest_dir, symlinks=True, dirs_exist_ok=True)
for file_abs_path in Path(source_dir).rglob('*.md'):
file_abs_path = str(file_abs_path) # python 3.5 compatibility
if os.path.isfile(file_abs_path):