-
Notifications
You must be signed in to change notification settings - Fork 153
Added recursive SFTP copying #44
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
Conversation
pssh/ssh_client.py
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What if local_file is a directory?
Nevermind, can see the other code path.
|
Thanks for the PR! Am making changes to This is the working branch for that WIP. Couple comments in the meantime:
Eg make new function
If you want to rebase now, can assume that |
|
Thanks for the feedback! I'll make those changes and update the PR. |
… into sftp_recursive Conflicts: pssh/ssh_client.py
|
Rebased onto |
…Added unittests for mkdir for relative path, absolute paths and multiple missing parent dirs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new recurse keyword and functionality needs documenting here.
|
I think that's a great way to do it. It makes it more clear what the I'll update the documentation and make that change. Thanks again for the feedback! |
|
Awesome, thanks! Have merged the |
… into sftp_recursive Conflicts: pssh/ssh_client.py Merged in new mkdir function.
|
Rebased Sorry for the messy commit history; this is the first time I've used git to do more than just push and pull. |
|
Looks like a bad rebase + merge has created bad history - PR changes are showing changes from Have re-created the PR at #45 |
Added support for recursive copying to
copy_file. Now, when a directory path is supplied tolocal_file, the method recursively calls itself on every file and directory within that directory, and attempts to copy them to the directory path supplied toremote_file.