cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: How to disable FTP file upload overwrite??

From: Jeff Pohlmeyer <yetanothergeek_at_gmail.com>
Date: Tue, 29 Jul 2008 06:14:51 -0500

Mohun Biswas wrote:
> Tiago Conceição wrote:

>> thanks, and how can i do a clean/fast file exist check?

> The answer is access() or stat(). But at this point you're drifting well
> beyond libcurl and into basic programming issues which are better
> addressed elsewhere.

No, I think he wants to check the existence of
the remote file, not a local one. Probably the
easiest answer is to do a CURLOPT_NOBODY request
first and check the return value/response code.
But unfornately, for FTP that means going through
the login process twice.

 - Jeff
Received on 2008-07-29