MCPcopy Create free account
hub / github.com/argotorg/solidity / find_files

Function find_files

scripts/error_codes.py:112–123  ·  view source on GitHub ↗

Builds a list of files with given extensions in specified subdirectories

(top_dir, sub_dirs, extensions)

Source from the content-addressed store, hash-verified

110
111
112def find_files(top_dir, sub_dirs, extensions):
113 """Builds a list of files with given extensions in specified subdirectories"""
114
115 source_file_names = []
116 for directory in sub_dirs:
117 for root, _, file_names in os.walk(os.path.join(top_dir, directory), onerror=lambda e: sys.exit(f"Walk error: {e}")):
118 for file_name in file_names:
119 _, ext = path.splitext(file_name)
120 if ext in extensions:
121 source_file_names.append(path.join(root, file_name))
122
123 return source_file_names
124
125
126def find_ids_in_test_file(file_name):

Callers 2

examine_id_coverageFunction · 0.85
mainFunction · 0.85

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected