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

Function clean_dir

system/lib/update_libunwind.py:22–30  ·  view source on GitHub ↗
(dirname)

Source from the content-addressed store, hash-verified

20
21
22def clean_dir(dirname):
23 for f in os.listdir(dirname):
24 if f in preserve_files:
25 continue
26 full = os.path.join(dirname, f)
27 if os.path.isdir(full):
28 shutil.rmtree(full)
29 else:
30 os.remove(full)
31
32
33def copy_tree(upstream_dir, local_dir):

Callers 1

mainFunction · 0.70

Calls 2

joinMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected