MCPcopy Create free account
hub / github.com/peter-vilja/gulp-clean / createTree

Function createTree

test.js:20–34  ·  view source on GitHub ↗
(callback)

Source from the content-addressed store, hash-verified

18 });
19
20 function createTree(callback) {
21 fs.mkdir('tmp/tree/', function () {
22 fs.mkdir('tmp/tree/leaf', function () {
23 fs.mkdir('tmp/tree/leaf/node', function () {
24 fs.writeFile('tmp/tree/leaf/node/leaf.js', 'console.log("leaf")', function () {
25 fs.mkdir('tmp/tree/leftleaf', function () {
26 fs.writeFile('tmp/tree/leftleaf/leaf1.js', 'console.log("leaf")', function () {
27 callback();
28 });
29 });
30 });
31 });
32 });
33 });
34 }
35
36 it('removes a file', function (done) {
37 var stream = clean();

Callers 1

test.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…