title: how to use curl --ftp-create-dirs?
body: <p><strong>Background</strong></p>
  
  <p>I have been searching the Internet trying to find an example of <code>--ftp-create-dirs</code>.</p>
  
  <p>Overall my goal is to use "--ftp-create-dirs" to automatically create the necessary folders if they are not present when I upload my file.</p>
  
  <p><strong>Problem</strong></p>
  
  <p>The problem is I don't know the exact syntax for properly using <code>--ftp-create-dirs</code>, can someone help me with this?</p>
  
  <p><strong>My current curl:</strong></p>
  
  <pre><code>curl -k -T 000-0000-0000-000.png -u [username]:[pass] --ftp-create-dirs /test --ftp-ssl  ftp:[ftp server]
  </code></pre>
  
  <p>In the example above, I am trying to upload the .png image and create <code>/test</code> on the ftp server if it does not exist.</p>