'use strict'; const path = require('path'); const fs = require('fs'); module.exports = async function (app, opts) { fs.readdirSync(__dirname).forEach((filename) => { if (!['index.js'].some(f => filename == f)) { const utils = require(`./${filename}`)(app, opts) app.fs.utils = { ...app.fs.utils, ...utils, } } }); };