code: async function FindFiles(baseDir = path.resolve('../../'), pattern = '.*', depth = 0, options = {}) {
      const { concurrency = 10 } = options;
  
      const result = [];
      depth > -1 && await search(baseDir, typeof pattern === 'string' ? new RegExp(pattern) : pattern, depth, result, concurrency);
      return result;
  }
docs: @typedef {Object[]} Result
  @property {string} dir
  @property {string} file
   
  Searches for files matching the given pattern
  @param {string} baseDir Base directory
  @param {RegExp|String} pattern Regexp pattern
  @param {Number} depth Number of recursions into the directory for file search
  @param {Object} options
  @param {number} options.concurrency Number of concurrent folder searches
  
  @return {Promise.<Result>}