fishi0x01 / vsh

vsh - HashiCorp Vault interactive shell and cli tool
MIT License
284 stars 12 forks source link

Fix cp and mv issue on dir with trailing '/' #38

Closed fishi0x01 closed 4 years ago

fishi0x01 commented 4 years ago

cp and mv have wrong behavior when copying dir with trailing /

http://localhost:8080 /secret/> ls
dev/
http://localhost:8080 /secret/> cp dev/ test
Copied /secret/dev/1 to /secret/test1
Copied /secret/dev/2 to /secret/test2
Copied /secret/dev/3 to /secret/test3
http://localhost:8080 /secret/> ls
dev/
test1
test2
test3