cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: multiple ftp upload

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Tue, 25 May 2004 12:52:20 +0200 (CEST)

On Tue, 25 May 2004, jean-renaud margelidon wrote:

> >>is there any way to make multiple ftp upload. i mean, i need to upload the
> >>same file on mutiple directory on the same ftp server

> > curl -T file -T file ftp://domain.com/path1/ ftp://domain.com/path2/
>
> is this will d multiple upload or one upload and multiple copies ???

This is multiple uploads, just like you asked for.

AFAIK, there is no equivalent to "copy" or "cp" in FTP, so you can't easily do
that.

I would of course consider setting up the ftp server to symlink from the other
places to the single file. It seems stupid to have the same file on multiple
places, physically.

-- 
     Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
      Dedicated custom curl help for hire: http://haxx.se/curl.html
Received on 2004-05-25