code: function search(patt, options = {}) {
      return new Promise((resolve, reject) => glob(
          patt, options, (err, files) => err ? reject(err) : resolve(files)
      ));
  }
docs: ****************************************
  搜索文件
  ****************************************