Upload raw bytes via SFTP

206 views
Skip to first unread message

Stefan

unread,
May 19, 2022, 9:43:40 AM5/19/22
to asyncssh-users
Hi,

Is it possible to upload raw bytes into a remote file via SFTP?  I already loaded the file to upload into memory to do some pre-processing and I'd like to avoid writing it back to disk just for upload. Paramiko has a `putfo()` method for that, but I have not found something similar in asyncssh yet.

(Apart from that, porting from paramiko to asyncssh was straight forward so far :))

Cheers
Stefan

Stefan

unread,
Jun 1, 2022, 5:16:23 AM6/1/22
to asyncssh-users
`sftp_client.open()` does exactly this.  Also see: https://github.com/ronf/asyncssh/issues/378
Reply all
Reply to author
Forward
0 new messages