Discussion:
Recursive scp downloads?
George Nachman
2017-07-16 22:58:12 UTC
Permalink
Is there any way to do a "recursive" download using libssh2, like scp
-r? libssh2_scp_recv simply fails with an error when you give it a
directory, but perhaps there's a trick I haven't figured out yet?
Daniel Stenberg
2017-07-19 17:48:21 UTC
Permalink
Is there any way to do a "recursive" download using libssh2, like scp -r?
libssh2_scp_recv simply fails with an error when you give it a directory,
but perhaps there's a trick I haven't figured out yet?
That's still a missing feature in libssh2.
--
/ daniel.haxx.se
_______________________________________________
libssh2-devel https://cool.
bch via libssh2-devel
2017-07-19 18:06:23 UTC
Permalink
On Jul 19, 2017 10:50, "Daniel Stenberg" <***@haxx.se> wrote:

On Sun, 16 Jul 2017, George Nachman wrote:

Is there any way to do a "recursive" download using libssh2, like scp -r?
libssh2_scp_recv simply fails with an error when you give it a directory,
but perhaps there's a trick I haven't figured out yet?
That's still a missing feature in libssh2.


Is that a thing that the sh protocol facilitates or would be worked-out as
a convenience feature?

-bch
--
/ daniel.haxx.se
_______________________________________________
libssh2-devel https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Peter Stuge
2017-07-20 13:22:21 UTC
Permalink
Post by bch via libssh2-devel
Is that a thing that the sh protocol facilitates or would be
worked-out as a convenience feature?
Recursing through a hierarchy of files is not in any way part of
either the SSH protocol, the SFTP protocol or the SCP protocol.

It would have to be implemented entirely within the client.

Recommend SFTP over SCP.


//Peter
_______________________________________________
libssh2-devel https://cool.haxx.se/cgi-bin/mailman
Daniel Stenberg
2017-07-20 16:21:38 UTC
Permalink
Recursing through a hierarchy of files is not in any way part of either the
SSH protocol, the SFTP protocol or the SCP protocol.
It would have to be implemented entirely within the client.
Not entirely right? Since the client sends the recursive scp command line to
the server and then needs to correctly handle what it gets sent back.
--
/ daniel.haxx.se
_______________________________________________
libssh2-devel https://cool.haxx.se/cgi-bin/mailman/l
Loading...