cURL / Mailing Lists / curl-library / Single Mail


RE: SFTP - How to delete a file

From: Mathew Simon <>
Date: Mon, 27 Aug 2007 11:53:09 -0500

The decision to delete can be made only after downloading the file, and
after seeing/verifying the content of the file. Hence, the decision to
issue CURLOPT_POSTQUOTE cannot be made before the download.

Mathew Simon

-----Original Message-----
[] On Behalf Of Dan Fandrich
Sent: Monday, August 27, 2007 11:15 AM
Subject: Re: SFTP - How to delete a file
> If I use the CURLOPT_POSTQUOTE, then it become applicable to all the
> files. I want to delete the files selectively.

It becomes applicable to the next transfer you perform. You should be
turning on and off that option depending on when you want the postquote
command to run.

>>> Dan

--              The web change of address
          Let webmasters know that your web site has moved
Received on 2007-08-27