cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: SFTP - How to delete a file

From: Mathew Simon <msimon_at_simdol.com>
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.

Thanks,
Mathew Simon

-----Original Message-----
From: curl-library-bounces_at_cool.haxx.se
[mailto:curl-library-bounces_at_cool.haxx.se] On Behalf Of Dan Fandrich
Sent: Monday, August 27, 2007 11:15 AM
To: curl-library_at_cool.haxx.se
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

-- 
http://www.MoveAnnouncer.com              The web change of address
service
          Let webmasters know that your web site has moved
Received on 2007-08-27