MCPcopy Create free account
hub / github.com/WebAssembly/wabt / GetFilesWithExtension

Function GetFilesWithExtension

test/update-spec-tests.py:36–43  ·  view source on GitHub ↗
(src_dir, want_ext)

Source from the content-addressed store, hash-verified

34
35
36def GetFilesWithExtension(src_dir, want_ext):
37 result = set()
38 if os.path.exists(src_dir):
39 for filename in os.listdir(src_dir):
40 name, ext = os.path.splitext(filename)
41 if ext == want_ext:
42 result.add(name)
43 return result
44
45
46def ProcessDir(wabt_test_dir, testsuite_dir, tool, flags=None):

Callers 1

ProcessDirFunction · 0.85

Calls 1

addMethod · 0.45

Tested by

no test coverage detected