MCPcopy Index your code
hub / github.com/nodejs/node / subdir_files

Function subdir_files

tools/install.py:143–150  ·  view source on GitHub ↗
(options, path, dest, action)

Source from the content-addressed store, hash-verified

141 assert 0 # unhandled action type
142
143def subdir_files(options, path, dest, action):
144 source_path, _ = mkpaths(options, path, dest)
145 ret = {}
146 for dirpath, dirnames, filenames in os.walk(source_path):
147 files_in_path = [os.path.join(os.path.relpath(dirpath, options.root_dir), f) for f in filenames if f.endswith('.h')]
148 ret[os.path.join(dest, os.path.relpath(dirpath, source_path))] = files_in_path
149 for subdir, files_in_path in ret.items():
150 action(options, files_in_path, subdir + os.path.sep)
151
152def files(options, action):
153 node_bin = 'node'

Callers 1

headersFunction · 0.85

Calls 5

mkpathsFunction · 0.85
actionFunction · 0.85
walkMethod · 0.80
joinMethod · 0.45
itemsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…