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

Function erase

tools/cache.py:83–89  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

81
82
83def erase():
84 ensure_setup()
85 assert not config.FROZEN_CACHE, 'Cache cannot be erased when FROZEN_CACHE is set'
86
87 with lock('erase'):
88 # Delete everything except the lockfile itself
89 utils.delete_contents(cachedir, exclude=[os.path.basename(cachelock_name)])
90
91
92def get_path(name):

Callers

nothing calls this directly

Calls 2

ensure_setupFunction · 0.85
lockFunction · 0.70

Tested by

no test coverage detected