curl / Mailing Lists / curl-library / Single Mail

curl-library

Re: How to download entire directory in sftp using libcurl

From: 金威 via curl-library <curl-library_at_cool.haxx.se>
Date: Wed, 26 Sep 2018 19:50:02 +0800 (GMT+08:00)

So, how to get contents of the remote directory? I can only get the root directory.

| |
金威
邮箱:jinweinju_at_163.com
|

签名由 网易邮箱大师 定制

On 09/26/2018 17:10, Daniel Stenberg wrote:
On Wed, 26 Sep 2018, 金威 via curl-library wrote:

> I want to download the entire directory on SFTP server. The server is in
> windows platform. How can I do it? Examples will be thankful.

libcurl has no automatic feature for that.

 1. Get the contents of the remote directory
 2. Figure out all the files in there that you want to retrieve
 3. Iterate over all the files and get them, one by one

--
 / daniel.haxx.se

-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2018-09-26