In trying to watch for changes to children of a znode, I found that it is difficult to keep track of which children have been register()'d for and which haven't.
It would be nice to be able to provide either a glob or a regex to register() that could be registered once and fire for all of the children.
This seems like it would be expensive.
Would you not have to first perform a stat on the top-level of all the children and then only set the register on the znodes that matched the pattern? Just thinking out loud here. Unless you registered on the root node of something and then merely filtered out on the pattern.