MCPcopy Index your code
hub / github.com/tensorpack/tensorpack / recursive_walk

Function recursive_walk

tensorpack/utils/fs.py:77–84  ·  view source on GitHub ↗

Yields: str: All files in rootdir, recursively.

(rootdir)

Source from the content-addressed store, hash-verified

75
76
77def recursive_walk(rootdir):
78 """
79 Yields:
80 str: All files in rootdir, recursively.
81 """
82 for r, dirs, files in os.walk(rootdir):
83 for f in files:
84 yield os.path.join(r, f)
85
86
87def get_dataset_path(*args):

Callers

nothing calls this directly

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected