MCPcopy
hub / github.com/vercel/next.js / cleanImagesDir

Function cleanImagesDir

test/integration/image-optimizer/test/util.ts:122–125  ·  view source on GitHub ↗
(imagesDir)

Source from the content-addressed store, hash-verified

120}
121
122export const cleanImagesDir = async (imagesDir) => {
123 console.warn('Cleaning', imagesDir)
124 await fs.remove(imagesDir)
125}
126
127async function getDirSize(dir: string): Promise<number> {
128 let totalSize = 0

Callers 3

index.test.tsFile · 0.90
runTestsFunction · 0.85
setupTestsFunction · 0.85

Calls 2

warnMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected