cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Curl-Problems with Multiple File-Uploads

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 4 Jun 2010 23:25:01 +0200 (CEST)

On Fri, 4 Jun 2010, Zacher, Vitali (KRZ) wrote:

> curl --ftp-ssl -u User:Password -T
> "D:\session\Somacos999\SessionNet\pdf_neu\0[0000001-9999999].pdf" --url
> ftps: //sessionnet.krz.de/pdf/ -k

> I have to upload 500 pdf-files from the given source. It all went well until
> it got to the pdf-file named "00000100.pdf". This file doesn't exist, so
> curl just aborts its task. But there are 400 more files to upload. I would
> like to have it in a script which automatically starts and uploads the files
> frequently, without aborting, so to say, just skipping the non-existing
> files.

That's not a feature curl has.

> Is there some kind of "workaround" to solve this problem?

Sure. You can write a script that either:

A) creates dummy files for the missing ones

  or

B) make use of one -T for each _existing_ file as then it doesn't matter how
    many gaps you have in the series.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2010-06-04