cURL / Mailing Lists / curl-users / Single Mail

curl-users

[ curl-Feature Requests-788590 ] Auto create target directory tree when upload by ftp

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Thu, 14 Aug 2003 02:01:06 -0700

Feature Requests item #788590, was opened at 2003-08-14 09:01
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=350976&aid=788590&group_id=976

Category: command line client
Group: upload
Status: Open
Resolution: None
Priority: 5
Submitted By: ZeuG (zeug_fr)
Assigned to: Daniel Stenberg (bagder)
Summary: Auto create target directory tree when upload by ftp

Initial Comment:
Would it be possible to implement a feature which
permits to mkdir non-existing directories on the target
tree structure, when doing an ftp upload ?

exemple (I assume the new command line argument
would be --create-target-tree) :
curl -u anonymous:nopwd --create-target-tree -T
C:\test.dat - ftp://targetftp/test/1/2/3/

=> if /test/1 exists, creates /test/1/2 and /test/1/2/3
before uploading, to be shure that it won't fail if user
has write permission.
=> if /test/1/2/3 exists, just upload the file !

I think it would be very useful and i don't think it is too
complex to implement (seeing quality and features of
actual cURL releases !).

Thanks.

PS : Tried it with multiple -Q options, but fails if part of
target tree already exists.

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=350976&aid=788590&group_id=976

-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines
at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0
Received on 2003-08-22