Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

copying locally requires you to create the local file first #1

Open
jmhodges opened this issue May 15, 2014 · 1 comment
Open

copying locally requires you to create the local file first #1

jmhodges opened this issue May 15, 2014 · 1 comment

Comments

@jmhodges
Copy link

In order to copy files from a zk server to a local drive, you have to first touch the files locally and then use "cp -f" to get them into place. The touching shouldn't be required.

for f in $(fileutil --zkhost=myhost.example.com ls zk:///some/path/); do 
  touch $f; 
  fileutil --zkhost=myhost.example.com cp -f zk:///some/path/${f} ${PWD}/${f}; 
done

Also, it would be nice to able to do globbing and not require the $PWD (or other absolute paths) in the local path.

@jmhodges
Copy link
Author

Oh, and if you don't do the touching you get "Unknown path member_whatever" for each one being copied.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant