code: function (filedir) {
      var files = fs.readdirSync(filedir);
  
      files.forEach(function (url) {
          var fullUrl = path.join(filedir, url);
          var stat = fs.statSync(fullUrl);
          if (stat.isDirectory()) {
              walkAllFiles(fullUrl);
          }
          if (stat.isFile()) {
              var pass = true;
              paramObj.staticResourcesFileFilter.forEach(function (val) {
                  if (val.test(fullUrl)) {
                      pass = false;
                  }
              });
              var isHtml = url.match(/\.html|\.htm/);
              if (isHtml) {
                  addToHtmlFiles(path.relative(baseRoot, fullUrl).replace(isHtml[0], '').replace(/\\|\//g, '/'), fullUrl);
              }
              if (pass) { //需要过滤掉的格式
                  allFilesToUpload.push(fullUrl);
              }
          }
      });
  }
docs: 遍历本地文件夹下的所有文件
  @param filedir