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.
Asked
Active
Viewed 1.5k times
1 Answers
17
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

pyfunc
- 65,343
- 15
- 148
- 136