Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
197
def
delete_file(filename):
198
""
"Delete a file (if it exists)."
""
199
if
os.path.lexists(filename):
200
os.remove(filename)
201
202
203
def
delete_dir(dirname):
Callers
15
test_jslib_include
Method · 0.90
wipe
Function · 0.90
test_firstrun
Method · 0.90
test_llvm
Method · 0.90
test_node
Method · 0.90
test_js_engine_path
Method · 0.90
test_missing_config
Method · 0.90
test_emcc_3
Method · 0.90
test_identical_basenames
Method · 0.90
test_multiple_archives_duplicate_basenames
Method · 0.90
test_archive_duplicate_basenames
Method · 0.90
test_undefined_symbols
Method · 0.90
Calls
1
remove
Method · 0.45
Tested by
15
test_jslib_include
Method · 0.72
wipe
Function · 0.72
test_firstrun
Method · 0.72
test_llvm
Method · 0.72
test_node
Method · 0.72
test_js_engine_path
Method · 0.72
test_missing_config
Method · 0.72
test_emcc_3
Method · 0.72
test_identical_basenames
Method · 0.72
test_multiple_archives_duplicate_basenames
Method · 0.72
test_archive_duplicate_basenames
Method · 0.72
test_undefined_symbols
Method · 0.72