cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Download from ftp (folders) in exact order of directories on HDD

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 4 Apr 2014 23:39:47 +0200 (CEST)

On Tue, 1 Apr 2014, Stojan Veljkovic wrote:

> What I tried is to setopt CURLOPT_URL to localhost/updater where this
> folder hierarchy is(as shown above).

You're using the easy interface, right? Then just do one at a time and it'll
be fine.

> and FILE *stream argument passed to function my_fwrite is stream.filename =
> data/sounds/intro1.wav.

> But when i try to do that i get error 23.

Then show us what your write function does and what it returns. You probably
returned the wrong value.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2014-04-04