code: function getKernelInfos(directory) {
    return promisify(fs.readdir, [directory]).then(files =>
      files.map(fileName => ({
        name: fileName,
        resourceDir: path.join(directory, fileName),
      }))
    );
  }
docs: Gets a list of kernelInfo objects for a given directory of kernels
  @param  {string}   directory path to a directory full of kernels
  @return {Promise<Object[]>}  Promise for an array of kernelInfo objects