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

Function expand_paths

scripts/website/check_paragraph_capitalization.py:158–168  ·  view source on GitHub ↗
(paths)

Source from the content-addressed store, hash-verified

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

Callers 1

mainFunction · 0.70

Calls 3

joinMethod · 0.65
appendMethod · 0.65
extendMethod · 0.45

Tested by

no test coverage detected