lib/Autoloader.js
/**
   * Read the specified directory
   * @param {String} path path of the directory to scan
   * @private
   */
Read the specified directory
@param {String} path path of the directory to scan
@private
Read the specified directory @param { String } path path of the directory to scan @private
readDir (path = '') {
    for (let file of fs.readdirSync(resolve(this.basePath, path))) {
      if (this.ignore.includes(file)) {
        continue 
      }
      if (
        fs.lstatSync(resolve(this.basePath, path, file)).isFile()
      ) {
        this.constructModuleNamespace(path, file)
        continue
      }
      if (file[0] === '.') {
        continue 
      }
      this.readDir(join(path, file))
    }
  }
readDir ( path = '' ) { for ( let file of fs . readdirSync ( resolve ( this . basePath , path ) ) ) { if ( this . ignore . includes ( file ) ) { continue } if ( fs . lstatSync ( resolve ( this . basePath , path , file ) ) . isFile ( ) ) { this . constructModuleNamespace ( path , file ) continue } if ( file [ 0 ] === '.' ) { continue } this . readDir ( join ( path , file ) ) } }
Read the specified directory
 @param {String} path path of the directory to scan
 @private
Read the specified directory @param { String } path path of the directory to scan @private
// ignore folder // ignore hidden folders