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

clj-ssh/download: fix :recursive and :preserve flags. #35

Merged
merged 1 commit into from Mar 17, 2016

Conversation

aphyr
Copy link
Contributor

@aphyr aphyr commented Jul 1, 2015

Support for :recursive and :preserve called (map) on a kv map without destructuring the pairs, resulting in an arity mismatch exception. This patch pulls out the keys so we can pass the -p and -r flags to scp correctly. Recursive is still broken, however--it verifies the output path is a directory, then opens it as a file and clobbers it with each source file in turn.

Recursive still doesn't work correctly: clj-ssh writes every file into
the same output.
hugoduncan added a commit that referenced this pull request Mar 17, 2016
clj-ssh/download: fix :recursive and :preserve flags.
@pbors pbors merged commit 16361d2 into clj-commons:develop Mar 17, 2016
(string/join " " remote-paths))
_ (println cmd)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this println may not be wanted?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rborer thanks for pointing that out. I'll cut another release without this.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, yes, that looks like my mistake. Sorry bout that!

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

Successfully merging this pull request may close these issues.

None yet

4 participants