xplora
Version:
Xplora is a command-line tool to visualize files & directories on your file system and output them into a hierarchical tree. Xplora also comes with many other great features.
16 lines (12 loc) • 345 B
JavaScript
;
const path = require("path");
const appState = require("../config/appState");
/**
* Add path to ignoreDirs set.
*
* @param {String} dir Directory path
*/
function ignoreDirsPath(dir, startingDir = appState.startDir) {
appState.ignoreDirs.add(path.join(startingDir, dir));
}
module.exports = ignoreDirsPath;