]> granicus.if.org Git - curl/commitdiff
add an FTP rename example to 3.7
authorDaniel Stenberg <daniel@haxx.se>
Tue, 26 Jun 2007 21:53:46 +0000 (21:53 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 26 Jun 2007 21:53:46 +0000 (21:53 +0000)
docs/FAQ

index ce47f33515f33ce1234fe5d1784221ceea9c76ed..755e4d1d12b4486f0a0f9b7cc0ca31b0211bb101 100644 (file)
--- a/docs/FAQ
+++ b/docs/FAQ
@@ -1,4 +1,4 @@
-Updated: February 11, 2007 (http://curl.haxx.se/docs/faq.html)
+Updated: June 26, 2007 (http://curl.haxx.se/docs/faq.html)
                                   _   _ ____  _
                               ___| | | |  _ \| |
                              / __| | | | |_) | |
@@ -446,6 +446,10 @@ FAQ
 
      curl -O ftp://download.com/coolfile -Q '-DELE coolfile'
 
+  or rename a file after upload:
+
+     curl -T infile ftp://upload.com/dir/ -Q "-RNFR infile" -Q "-RNTO newname"
+
   3.8 How do I tell curl to follow HTTP redirects?
 
   Curl does not follow so-called redirects by default. The Location: header