code: function mkdirp(con, p, callback) {
    p = path.normalize(p);
    var dirs = p.split('/').slice(1); // remove empty string at the start.
  
    // console.log('dirs', dirs);
  
    var tasks = [];
    dirs.forEach(function(dir, i) {
      var subpath = '/' + dirs.slice(0, i).join('/') + '/' + dir;
      subpath = path.normalize(subpath); // remove extra `/` in first iteration
      tasks.push(async.apply(create, con, subpath));
    });
    async.waterfall(tasks, function(err, results) {
      if(err) return callback(err);
      // succeeded!
      return callback(null, true);
    });
  }
docs: ZK does not support ./file or /dir/../file mkdirp(zookeeperConnection, '/a/deep/path/to/a/file', cb)