cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Implement "Safe Put" with curl

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 20 Feb 2007 16:33:08 +0100 (CET)

On Tue, 20 Feb 2007, Yair Lenga wrote:

> --upload-suffix=suffix # Will upload into /path/to/file.suffix, then
> rename /path/to/file.suffix -> /path/to/file
> --upload-unique # to upload using STOU, then rename the result
> file (if necessary) to the target name

This can easily be done by uploading to a unique (random) file name that you
rename after upload with -Q.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2007-02-20