code: async function getFiles(path) {
    return new Promise((resolve, reject) => {
      glob(path, (error, files) => (error ? reject(error) : resolve(files)));
    });
  }
docs: Use the Glob module to retrieve a list of all the files/folders in a provided path
  
  @param path
  @returns {Promise<*>}