How upload folder by FTP using cURL?

kalombo picture kalombo · Nov 9, 2010 · Viewed 13.9k times · Source

I need to create FTP-uploader, i am using pycurl and python, but i dont know how to make folder with cURL on ftp's host. Help me please.

Answer

pyfunc picture pyfunc · Nov 9, 2010

You can use the curl option while uploading a file : --ftp-create-dirs

Ex:

curl --ftp-create-dirs -T uploadfilename -u username:password ftp://sitename.com/directory/myfile