curl / Mailing Lists / curl-library / Single Mail


Re: How to download entire directory in sftp using libcurl

From: Daniel Stenberg via curl-library <>
Date: Wed, 26 Sep 2018 11:10:07 +0200 (CEST)

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


Received on 2018-09-26