curl-users
Re: FTP Upload: Creating Directories?
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 29 Jul 2002 11:52:57 +0200 (MET DST)
Date: Mon, 29 Jul 2002 11:52:57 +0200 (MET DST)
On Mon, 22 Jul 2002, Philip Weaver wrote:
> I am using curl on the command line to upload files via ftp. When I
> specify an upload path where the directories do not yet exist, the transfer
> fails. Is there some mode I can set, so it will create the directories if
> they don't exist? Does this have something to do with QUOTE commands? Can
> you give me an example of how to make this work?
Without having tested or anything, it could look something similar to this:
curl -Q "MKD full/dir/path" -T file ftp://server.com/full/dir/path/
-- Daniel Stenberg -- curl groks URLs ------------------------------------------------------- This sf.net email is sponsored by: Dice - The leading online job board for high-tech professionals. Search and apply for tech jobs today! http://seeker.dice.com/seeker.epl?rel_code=31Received on 2002-07-29