code: function createDir(srcPath, desPath) {
      var pathInfo = path.parse(desPath);
      var searchvalue = pathInfo.root[pathInfo.root.length - 1]
      var start = 0;
      var found = pathInfo.dir.indexOf(searchvalue);
      var subPath = '';
      var dirs = [];
  
      if (found != -1) {
          while (true) {
              subPath = pathInfo.dir.substr(start, found - start + 1);
              if (subPath != '') {
                  dirs.push(subPath);
              }
              start = found + 1;
              found = pathInfo.dir.indexOf(searchvalue, start);
              if (found == -1) {
                  if (start < pathInfo.dir.length) {
                      dirs.push(pathInfo.dir.substr(start));
                  }
                  break;
              }
          }
      }
  
      subPath = '';
      dirs.forEach(function (dir, num) {
          subPath += dir;
          if (!fs.existsSync(subPath)) {
              try {
                  fs.mkdirSync(subPath);
              } catch (e) {
                  if (e.code != 'EEXIST') {
                      console.log('[error] ', e);
                  };
              }
              console.log('[info] create  dir:', subPath);
          }
          if (num == dirs.length - 1 && pathInfo.base != '') {
              copyFile(srcPath, desPath);
              //console.log('src file:', srcPath);
              //console.log('des file:', desPath);
          }
      });
  
  }
docs: 创建目录
  @param {*String} srcPath 需要拷贝的目录绝对路径
  @param {*string} desPath 拷贝后的目标目录绝对路径