MCPcopy
hub / github.com/postcss/postcss / deleteDir

Function deleteDir

test/map.test.ts:41–53  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

39})
40
41function deleteDir(path: string): void {
42 if (existsSync(path)) {
43 readdirSync(path).forEach(i => {
44 let file = join(path, i)
45 if (lstatSync(file).isDirectory()) {
46 deleteDir(file)
47 } else {
48 unlinkSync(file)
49 }
50 })
51 rmdirSync(path)
52 }
53}
54
55test.after.each(() => {
56 deleteDir(dir)

Callers 1

map.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…