MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / expand

Function expand

scripts/website/americanize_spelling.py:169–178  ·  view source on GitHub ↗
(paths)

Source from the content-addressed store, hash-verified

167
168
169def expand(paths):
170 files = []
171 for p in paths:
172 if os.path.isdir(p):
173 for root, _d, names in os.walk(p):
174 files.extend(os.path.join(root, n) for n in sorted(names)
175 if n.endswith(".md") and n != "_index.md")
176 else:
177 files.append(p)
178 return files
179
180
181def main():

Callers 1

mainFunction · 0.85

Calls 3

joinMethod · 0.65
appendMethod · 0.65
extendMethod · 0.45

Tested by

no test coverage detected