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

Function erase_file

tools/cache.py:141–146  ·  view source on GitHub ↗
(shortname)

Source from the content-addressed store, hash-verified

139
140
141def erase_file(shortname):
142 with lock('erase: ' + shortname):
143 name = Path(cachedir, shortname)
144 if name.exists():
145 logger.info(f'deleting cached file: {name}')
146 utils.delete_file(name)
147
148
149def get_lib(libname, *args, **kwargs):

Callers 1

erase_libFunction · 0.85

Calls 2

existsMethod · 0.80
lockFunction · 0.70

Tested by

no test coverage detected