rgs1/zk_shell

documentation of cp command incorrect

feyrob opened this issue · 2 comments

The "README.md" file states:

Individual files can be copied between the local filesystem and ZooKeeper. Recursively copying from the filesystem to ZooKeeper is supported as well, but not the other way around since znodes can have content and children.
(CONNECTED) /> cp /etc/passwd zk://localhost:2181/passwd

This does not work for me.
I tried

(CONNECTED) /> cp file:///etc/passwd zk://localhost:2181/passwd

which worked for me. (notice "file://")

When running the command "cp help" this also is not mentioned.

rgs1 commented

Thanks for reporting this @ReFi! At first I was pondering on removing support for file:// since it has some weird corner cases, but I think I'll leave it. I'll update the README & help section in a bit.

rgs1 commented

@ReFi: how about something like: 30569df? I'll add a test case or two as well. Thanks!