MCPcopy
hub / github.com/compodoc/compodoc / cleanUp

Function cleanUp

tools/test-watch.js:12–24  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

10 tmp = (function() {
11 var name = '.tmp-compodoc-test';
12 var cleanUp = (name) => {
13 if( fs.existsSync(name) ) {
14 fs.readdirSync(name).forEach((file) => {
15 var curdir = path.join(name, file);
16 if(fs.statSync(curdir).isDirectory()) {
17 cleanUp(curdir);
18 } else {
19 fs.unlinkSync(curdir);
20 }
21 });
22 fs.rmdirSync(name);
23 }
24 };
25
26 return {
27 name,

Callers 1

cleanFunction · 0.70

Calls 2

existsSyncMethod · 0.45
forEachMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…