anmolnar commented on code in PR #2334:
URL: https://github.com/apache/zookeeper/pull/2334#discussion_r2566796258
##########
zookeeper-server/src/main/java/org/apache/zookeeper/cli/GetAclCommand.java:
##########
@@ -65,21 +66,37 @@ public boolean exec() throws CliException {
String path = args[1];
Stat stat = new Stat();
List<ACL> acl;
+ boolean recursive = cl.hasOption("R");
try {
- acl = zk.getACL(path, stat);
+ if (recursive) {
+ ZKUtil.visitSubTreeDFS(zk, path, false, (rc, path1, ctx, name)
-> {
+ try {
+ out.println(path1);
+ printAcl(zk.getACL(path1, stat), stat);
Review Comment:
Makes sense to me, let me take a look.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]