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

Function clean_dir

system/lib/update_llvm_libc.py:49–59  ·  view source on GitHub ↗
(dirname)

Source from the content-addressed store, hash-verified

47]
48
49def clean_dir(dirname):
50 if not os.path.exists(dirname):
51 return
52 for f in os.listdir(dirname):
53 if f in preserve_files:
54 continue
55 full = os.path.join(dirname, f)
56 if os.path.isdir(full):
57 shutil.rmtree(full)
58 else:
59 os.remove(full)
60
61
62def copy_tree(upstream_dir, local_dir):

Callers 1

mainFunction · 0.70

Calls 3

existsMethod · 0.80
joinMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected