tools/functions.js
function listDirectories(dirPath) {
    return fs.readdirSync(dirPath).filter(
        /**
         * @param {string} file
         * @returns {boolean}
         * */
        file => fs.statSync(path.join(dirPath, file)).isDirectory(),
    );
}
function listDirectories(dirPath) {
    return fs.readdirSync(dirPath).filter(
        /**
         * @param {string} file
         * @returns {boolean}
         * */
        file => fs.statSync(path.join(dirPath, file)).isDirectory(),
    );
}
function listDirectories ( dirPath ) { return fs . readdirSync ( dirPath ) . filter ( /**
         * @param {string} file
         * @returns {boolean}
         * */ file => fs . statSync ( path . join ( dirPath , file ) ) . isDirectory ( ) , ) ; }
List directories in a directory

@param {string} dirPath - Directory to search
@returns {string[]}
List directories in a directory