MCPcopy Index your code
hub / github.com/nodejs/node / temp_dir

Function temp_dir

deps/v8/tools/testrunner/utils/test_utils.py:35–43  ·  view source on GitHub ↗

Wrapper making a temporary directory available.

()

Source from the content-addressed store, hash-verified

33
34@contextlib.contextmanager
35def temp_dir():
36 """Wrapper making a temporary directory available."""
37 path = None
38 try:
39 path = Path(tempfile.mkdtemp('_v8_test'))
40 yield path
41 finally:
42 if path:
43 shutil.rmtree(path)
44
45
46@contextlib.contextmanager

Callers 1

temp_baseFunction · 0.85

Calls 1

mkdtempMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…