cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: how to FTP upload a whole directory?

From: Kamil Dudka <kdudka_at_redhat.com>
Date: Thu, 31 Dec 2009 00:13:17 +0100

On Wednesday 30 of December 2009 23:51:44 jar123 wrote:
> How can I upload a whole directory?

I guess you need to invoke curl more times:

for i in *.dll; do
    curl -v -P- -u xxx:xxx ftp://xxx.xxx.xxx.xxx/ -T $i
done

> When I type this command:
> curl -v -P- -u xxx:xxx ftp://xxx.xxx.xxx.xxx/ -T *.dll
> I receive the following output:

The string *.dll is expanded by shell in this case. Only the first file
is taken as uploaded file and the rest is taken as extra URLs.

Kamil
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2009-12-31