Skip to content

Allow uploading from an open file object#71

Closed
ericbuehl wants to merge 1 commit into
paramiko:masterfrom
ericbuehl:master
Closed

Allow uploading from an open file object#71
ericbuehl wants to merge 1 commit into
paramiko:masterfrom
ericbuehl:master

Conversation

@ericbuehl
Copy link
Copy Markdown

Adds support for passing an open file (or file-like) object to sftp_client with putfo and getfo. Useful for hooking to other file-based python modules to avoid touching local disk. Patch passes all unit tests.

This is a copy of the patch submitted at https://bugs.launchpad.net/paramiko/+bug/746157

@ivan-klass
Copy link
Copy Markdown

It will be awesome feature. Please review this patch. Now I have to call system
' heavy_output_script | ssh host cat > "remote_file" '

@bitprophet
Copy link
Copy Markdown
Member

Love the idea, haven't reviewed the patch yet, will soon. Added link to this in Fabric #787 which will be a good way to test it out.

bitprophet added a commit that referenced this pull request Nov 30, 2012
@bitprophet
Copy link
Copy Markdown
Member

Reviewed, merged, thanks!

@bitprophet bitprophet closed this Nov 30, 2012
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.

3 participants