MCPcopy Create free account
hub / github.com/apache/arrow / _do_list_all_dirs

Function _do_list_all_dirs

python/pyarrow/tests/test_dataset.py:2275–2283  ·  view source on GitHub ↗
(basedir, path_so_far, result)

Source from the content-addressed store, hash-verified

2273
2274
2275def _do_list_all_dirs(basedir, path_so_far, result):
2276 for f in os.listdir(basedir):
2277 true_nested = os.path.join(basedir, f)
2278 if os.path.isdir(true_nested):
2279 norm_nested = posixpath.join(path_so_far, f)
2280 if _has_subdirs(true_nested):
2281 _do_list_all_dirs(true_nested, norm_nested, result)
2282 else:
2283 result.append(norm_nested)
2284
2285
2286def _list_all_dirs(basedir):

Callers 1

_list_all_dirsFunction · 0.85

Calls 3

_has_subdirsFunction · 0.85
joinMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected