MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / clear

Function clear

system/lib/update_compiler_rt.py:33–41  ·  view source on GitHub ↗
(dirname)

Source from the content-addressed store, hash-verified

31
32
33def clear(dirname):
34 for f in os.listdir(dirname):
35 if f in preserve_files or 'emscripten' in f:
36 continue
37 full = os.path.join(dirname, f)
38 if os.path.isdir(full):
39 shutil.rmtree(full)
40 else:
41 os.remove(full)
42
43
44def main():

Callers 1

mainFunction · 0.70

Calls 2

joinMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected