MCPcopy Create free account
hub / github.com/FreeformRobotics/OTS / find_recursive

Function find_recursive

utils.py:25–30  ·  view source on GitHub ↗
(root_dir, ext='.jpg')

Source from the content-addressed store, hash-verified

23
24
25def find_recursive(root_dir, ext='.jpg'):
26 files = []
27 for root, dirnames, filenames in os.walk(root_dir):
28 for filename in fnmatch.filter(filenames, '*' + ext):
29 files.append(os.path.join(root, filename))
30 return files
31
32
33class AverageMeter(object):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected