curl-library
Re: SFTP - How to delete a file
From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Mon, 27 Aug 2007 09:15:18 -0700
Date: Mon, 27 Aug 2007 09:15:18 -0700
On Mon, Aug 27, 2007 at 11:02:22AM -0500, Mathew Simon wrote:
> I am able to download a bunch of files from the SFTP server. The
> downloading is in a loop, based on the directory listing. Depending upon
> the file name, I need to delete certain files from the SFTP server after
> the file is safely downloaded. How can I do it using LIBCURL?
>
> 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 movedReceived on 2007-08-27