MCPcopy Create free account
hub / github.com/IBM/AssetOpsBench / files_from

Function files_from

src/couchdb/loader.py:137–143  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

135 return os.path.join(roots[0], s)
136
137 def files_from(s):
138 if s.strip().lower() == "default":
139 return sorted(glob.glob(os.path.join(SAMPLE_DATA_DIR, key, "*" + ext)))
140 p = s if os.path.isabs(s) else _resolve(s)
141 if os.path.isdir(p):
142 return sorted(glob.glob(os.path.join(p, "*" + ext)))
143 return [p]
144
145 docs = []
146 for item in source if isinstance(source, list) else [source]:

Callers 1

_collect_docsFunction · 0.85

Calls 1

_resolveFunction · 0.85

Tested by

no test coverage detected