cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: -o Ignore Non-Existent Files

From: Jeff Pohlmeyer <yetanothergeek_at_gmail.com>
Date: Tue, 25 Nov 2008 11:06:27 -0600

On Nov 25, 2008, Jake Abramson <nightdesigns_at_yahoo.com> wrote:

> but if the file does not exist on the server, curl creates
> an empty (1 kb) png file on thelocal server.
>
> How can tell curl to ignore these empty files, or do something
> within the batch file to ignore or delete these files.

You might try passing the --fail flag to curl, and see if that
helps. If not, a VBS script might be more suitable than a batch
file for testing file sizes.

 - Jeff
Received on 2008-11-25