Run fn with a fresh temporary directory; the directory is recursively removed afterwards (success or failure). Mirrors Python's with tempfile.TemporaryDirectory() as d: block.
fn
with tempfile.TemporaryDirectory() as d:
Use this everywhere — do not call tmp.dirSync / mkdtempSync inline.
tmp.dirSync
mkdtempSync
Run
fnwith a fresh temporary directory; the directory is recursively removed afterwards (success or failure). Mirrors Python'swith tempfile.TemporaryDirectory() as d:block.Use this everywhere — do not call
tmp.dirSync/mkdtempSyncinline.