MCPcopy
hub / github.com/csscomb/csscomb.js / processPath

Method processPath

src/core.js:221–232  ·  view source on GitHub ↗

* Processes directory or file. * * @returns {Promise}

(path)

Source from the content-addressed store, hash-verified

219 * @returns {Promise}
220 */
221 processPath(path) {
222 let that = this;
223 path = path.replace(/\/$/, '');
224
225 return vfs.stat(path).then(function(stat) {
226 if (stat.isDirectory()) {
227 return that.processDirectory(path);
228 } else {
229 return that.processFile(path);
230 }
231 });
232 }
233
234 /**
235 * Processes a string.

Callers 1

processFilesFunction · 0.80

Calls 2

processDirectoryMethod · 0.80
processFileMethod · 0.80

Tested by

no test coverage detected