INNER CODE UNIT · Python
candidate
WenyuChiou/awesome-agentic-ai-zh · scripts/build-docs-tree.py:92
candidate = parent / name
if candidate.is_symlink():
found.add(candidate)
return sorted(found)
def main() -> int:
symlinks = _public_symlinks(_selected_public_sources())
if symlinks:
print(
"ERROR: refusing to publish symlinks from the reader-facing tree:",
file=sys.stderr,
)
for path in symlinks:
try:
shown = path.relative_to(REPO)
except ValueError:
shown = path