MCPcopy Create free account
hub / github.com/CppCon/CppCon2020 / generate_index

Function generate_index

_tools/add.py:104–117  ·  view source on GitHub ↗
(readme, path)

Source from the content-addressed store, hash-verified

102
103
104def generate_index(readme, path):
105 if not exists(path):
106 print("Skipping", path, "since it doesn't exist yet")
107 return
108
109 dir_contents = listdir(path)
110 dir_contents.sort(key=lambda s: s.lower())
111
112 for name in dir_contents:
113 try:
114 # empty directories or other such issues get skipped over
115 generate_entry(readme, join(path, name))
116 except:
117 pass
118
119
120def add_presentation(path):

Callers 1

add_indexFunction · 0.85

Calls 1

generate_entryFunction · 0.85

Tested by

no test coverage detected