INNER CODE UNIT · Python

sources

WenyuChiou/awesome-agentic-ai-zh · scripts/build-docs-tree.py:69

    sources = [REPO / directory for directory in CONTENT_DIRS]
    sources.extend(REPO / relative for relative in CONTENT_FILES)
    for stem in ROOT_STEMS:
        for suffix in (".md", ".en.md", ".zh-Hans.md"):
            source = REPO / f"{stem}{suffix}"
            if source.exists() or source.is_symlink():
                sources.append(source)
    return sources


def _public_symlinks(sources: list[Path]) -> list[Path]:
    """Find symlinks without following them into an external tree."""

    found: set[Path] = set()
    for source in sources:
        if source.is_symlink():
            found.add(source)
            continue

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…