code: function create(con, p, cb) {
    var data = 'created by zk-mkdir-p'; // just want a dir, so store something
    var flags = 0; // none
    con.a_create(p, data, flags, function(rc, error, zkPath) {
      // already exists, cool.
      if(rc == ZooKeeper.ZNODEEXISTS) {
        return cb();
      }
      if(rc != 0) {
        return cb(new Error('Zookeeper Error: code='+rc+'   '+error));
      }
      // sucessfully created!
      return cb();
    });
  }
docs: create(zookeeperConnection, '/some-path', cb) if there is a problem: cb(error) if the dir was created, or already exists: cb()