cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: wildcards for uploads

From: Seb <spluque_at_gmail.com>
Date: Thu, 11 Oct 2007 17:11:09 -0500

On Thu, 11 Oct 2007 13:26:28 -0700,
Brian Dessent <brian_at_dessent.net> wrote:

[...]

> cd ~/local/dir
> FILES=$(find -L . -name 'source' -prune -o ! -name '*~' \ -type f
> -printf '%P,' | sed -e 's/,$//')
> curl -v --disable-epsv --ftp-create-dirs -u user:passwd \ -T "{$FILES}"
> ftp://remote/dir//absolute/path

If I do that -T globbing though, curl strips the directory part of the
file name, so it ends up putting everything under the /absolute/path,
rather than in the specified subdirectories (and creating them if
necessary with --ftp-create-dirs flag). Am I missing something here
again?

-- 
Seb
Received on 2007-10-12