MCPcopy Index your code
hub / github.com/csscomb/csscomb.js / _getAcceptableFilesFromDirectory

Method _getAcceptableFilesFromDirectory

src/core.js:299–315  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

297 }
298
299 _getAcceptableFilesFromDirectory(path) {
300 if (!this._shouldProcess(path)) return;
301
302 let files = [];
303 let filesInThisDir = fs.readdirSync(path);
304
305 for (let i = 0, fl = filesInThisDir.length; i < fl; i++) {
306 let fullname = path + '/' + filesInThisDir[i];
307 let stat = fs.statSync(fullname);
308 if (stat.isDirectory() && this._shouldProcess(fullname))
309 files = files.concat(this._getAcceptableFilesFromDirectory(fullname));
310 else if (this._shouldProcessFile(fullname))
311 files.push(fullname);
312 }
313
314 return files;
315 }
316
317 /**
318 * @param {Node} ast

Callers 1

lintDirectoryMethod · 0.95

Calls 2

_shouldProcessMethod · 0.95
_shouldProcessFileMethod · 0.95

Tested by

no test coverage detected