You are not logged in.
I'm trying to use the -X option with cURL to simply rename a directory on an ftp site but I can't get it right since the rename from command expects a rename to command to precede it. I only know how to do this in two steps which doesn't work.
Example, I need to rename foo to bar
curl ftp://mysite.net -X 'RNFR foo' -u username:password
curl ftp://mysite.net -X 'RNTO bar' -u username:passwordEDIT: Got it, use the -Q switch not -X:
curl ftp://mysite.net -Q "-RNFR foo" -Q "-RNTO bar" -u username:passwordcURL rules.
Last edited by graysky (2011-02-02 16:42:29)
Offline
try
curl ftp://mysite.net -Q 'RNFR foo' -Q 'RNTO bar' -u username:passwordOffline
rezza - Thanks. I didn't see your reply until after I edited my original post.
Offline