MCPcopy Create free account
hub / github.com/ChromeDevTools/chrome-devtools-mcp / createDisposableTempFile

Function createDisposableTempFile

tests/utils.ts:654–665  ·  view source on GitHub ↗
(filename: string)

Source from the content-addressed store, hash-verified

652}
653
654export async function createDisposableTempFile(filename: string): Promise<{
655 path: string;
656 [Symbol.dispose]: () => void;
657}> {
658 const filepath = await getTempFilePath(filename);
659 return {
660 path: filepath,
661 [Symbol.dispose](): void {
662 fs.rmSync(path.dirname(filepath), {recursive: true, force: true});
663 },
664 };
665}

Callers 1

files.test.tsFile · 0.85

Calls 1

getTempFilePathFunction · 0.85

Tested by

no test coverage detected