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

Function cleanup_temp_directory

test/runner.py:577–586  ·  view source on GitHub ↗

Delete all files and directories in TEMP_DIR that look like they might have been created by Emscripten.

()

Source from the content-addressed store, hash-verified

575
576
577def cleanup_temp_directory():
578 """Delete all files and directories in TEMP_DIR that look like they might have been created by Emscripten."""
579 for entry in os.listdir(shared.TEMP_DIR):
580 if entry.startswith(('emtest_', 'emscripten_')):
581 entry = os.path.join(shared.TEMP_DIR, entry)
582 try:
583 if os.path.isdir(entry):
584 utils.delete_dir(entry)
585 except Exception:
586 pass
587
588
589def print_repository_info(directory, repository_name):

Callers 1

mainFunction · 0.85

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected