code: function (urlpath, dir) {
      var dirarr = dir.split('/');
      var url = /\/$/.test(urlpath) ? urlpath : urlpath + '/';
      dirarr.forEach(function (val) {
          addOneDir(url, val);
          redirectTo(url + val + '/');
          url += val;
      });
  }
docs: 在指定位置 添加有纵深的文件夹
  @param urlpath
  @param dir