7

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.

kalombo
  • 861
  • 1
  • 9
  • 31

1 Answers1

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