scripts/_common.py: exclude symlinks when obtaining pages directories (#18882)

This commit is contained in:
Dylan
2025-10-22 14:25:14 +00:00
committed by GitHub
parent 11e5ed591b
commit 4e214acf4c
+3 -1
View File
@@ -102,7 +102,9 @@ def get_pages_dir(root: Path) -> list[Path]:
list (list of Path's): Path's of page entry and platform, e.g. "page.fr/common".
"""
return [d for d in root.iterdir() if d.name.startswith("pages")]
return [
d for d in root.iterdir() if d.name.startswith("pages") and not d.is_symlink()
]
def test_get_pages_dir():