curl / Mailing Lists / curl-users / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: Quoting to delete remote file does not work when pulling a file

From: Dan via curl-users <curl-users_at_cool.haxx.se>
Date: Thu, 28 May 2020 07:50:17 +0200

On Wed, May 27, 2020 at 09:21:46PM +0000, Stolz, Werner (Chicago) via curl-users wrote:
> When I try to pull a file and then delete it from the remote server, curl
> delete the file BEFORE it pulls it. I searched for this
> type of error and could not find anyone else who has experienced it.

The quote command didn't show up in your message, but I assume it was something
like '-Q rm remotefilename.asc'. That behaviour would be working as documented.
To run the command after the transfer, it needs to be preceded with -, so
something like '-Q -rm remotefilename.asc'.

Dan
-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2020-05-28