stianeikeland / node-etcd

:satellite: Etcd client for nodejs
BSD 3-Clause "New" or "Revised" License
259 stars 85 forks source link

create directory not working when used with etcd v3 #76

Closed nassiharel closed 7 years ago

nassiharel commented 7 years ago

The doc is incorrect: "Will create a directory when used without value (value=null): etcd.set("directory/");"

not working.... but there is a mkdir function

but now I see the desc: "A nodejs library for ETCD v2, written in coffee-script."

anyway....

great lib, waiting for updates :-) :+1:

using: etcd.set("directory/");

creates: { "key": "/directory", "value": "", "modifiedIndex": 17, "createdIndex": 17 }

should be: { "key": "/directory", "dir": true, "modifiedIndex": 12, "createdIndex": 12 }