MCPcopy
hub / github.com/CppCon/CppCon2017 / generate_index

Function generate_index

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

Source from the content-addressed store, hash-verified

121
122
123def generate_index(readme, path):
124 if not exists(path):
125 print("Skipping", path, "since it doesn't exist yet")
126 return
127
128 dir_contents = listdir(path)
129 dir_contents.sort(key=lambda s: s.lower())
130
131 for name in dir_contents:
132 try:
133 # empty directories or other such issues get skipped over
134 generate_entry(readme, name, join(path, name))
135 except:
136 pass
137
138
139def add_presentation(path):

Callers 1

add_indexFunction · 0.85

Calls 1

generate_entryFunction · 0.85

Tested by

no test coverage detected