MCPcopy Index your code
hub / github.com/deepnote/deepnote / cleanupTempFile

Function cleanupTempFile

packages/cli/src/commands/test-helpers.ts:22–29  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

20 * Silently ignores errors (best-effort cleanup).
21 */
22export async function cleanupTempFile(filePath: string): Promise<void> {
23 try {
24 await fs.unlink(filePath)
25 await fs.rmdir(dirname(filePath))
26 } catch {
27 // Ignore cleanup errors
28 }
29}
30
31export interface SplitWithSiblingInitFixture {
32 /** Absolute path to the split "main" .deepnote file (the one analysis commands receive). */

Callers 4

cat.test.tsFile · 0.90
inspect.test.tsFile · 0.90
stats.test.tsFile · 0.90
validate.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected