blob: fa85fa5e468d9d3ddd0117bc7c1e5ac668e54d23 [file] [log] [blame]
const fs = require('fs');
module.exports = function () {
var paths=["./default", "./custom"]
var sections = {};
if (Array.isArray(paths) && paths.length > 0) {
for (p of paths) {
if (fs.existsSync(p)) {
var names = fs.readdirSync(p);
for (n of names) {
if (!n.startsWith('.'))
sections[n] = true;
}
}
}
}
return Object.keys(sections);
}