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

Function delete_file

tools/utils.py:197–200  ·  view source on GitHub ↗

Delete a file (if it exists).

(filename)

Source from the content-addressed store, hash-verified

195
196
197def delete_file(filename):
198 """Delete a file (if it exists)."""
199 if os.path.lexists(filename):
200 os.remove(filename)
201
202
203def delete_dir(dirname):

Callers 15

test_jslib_includeMethod · 0.90
wipeFunction · 0.90
test_firstrunMethod · 0.90
test_llvmMethod · 0.90
test_nodeMethod · 0.90
test_js_engine_pathMethod · 0.90
test_missing_configMethod · 0.90
test_emcc_3Method · 0.90

Calls 1

removeMethod · 0.45

Tested by 15

test_jslib_includeMethod · 0.72
wipeFunction · 0.72
test_firstrunMethod · 0.72
test_llvmMethod · 0.72
test_nodeMethod · 0.72
test_js_engine_pathMethod · 0.72
test_missing_configMethod · 0.72
test_emcc_3Method · 0.72