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

Function expand_paths

scripts/website/bulk_mechanical_fix.py:157–166  ·  view source on GitHub ↗
(paths)

Source from the content-addressed store, hash-verified

155
156
157def expand_paths(paths):
158 files = []
159 for p in paths:
160 if os.path.isdir(p):
161 for root, _d, names in os.walk(p):
162 files.extend(os.path.join(root, n) for n in sorted(names)
163 if n.endswith(".md"))
164 else:
165 files.append(p)
166 return files
167
168
169def main():

Callers 1

mainFunction · 0.70

Calls 3

joinMethod · 0.65
appendMethod · 0.65
extendMethod · 0.45

Tested by

no test coverage detected