MCPcopy Create free account
hub / github.com/CSSLint/csslint / traverse

Function traverse

src/cli/node.js:42–57  ·  view source on GitHub ↗
(dir, stack)

Source from the content-addressed store, hash-verified

40 }
41
42 function traverse(dir, stack) {
43 stack.push(dir);
44 fs.readdirSync(stack.join("/")).forEach(function(file) {
45 var path = stack.concat([file]).join("/"),
46 stat = fs.statSync(path);
47
48 if (file[0] === ".") {
49 return;
50 } else if (stat.isFile() && /\.css$/.test(file)) {
51 files.push(path);
52 } else if (stat.isDirectory()) {
53 traverse(file, stack);
54 }
55 });
56 stack.pop();
57 }
58
59 traverse(dir, []);
60

Callers 1

node.jsFile · 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…