summaryrefslogtreecommitdiff
path: root/docs/cmdline-opts/create-dirs.d
blob: 26069836e4afce27064409b554e29d59076c2be3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
Long: create-dirs
Help: Create necessary local directory hierarchy
Category: curl
---
When used in conjunction with the --output option, curl will create the
necessary local directory hierarchy as needed. This option creates the dirs
mentioned with the --output option, nothing else. If the --output file name
uses no dir or if the dirs it mentions already exist, no dir will be created.

Created dirs are made with mode 0777 on unix style file systems and umask is
in effect. Older versions used mode 0750.

To create remote directories when using FTP or SFTP, try --ftp-create-dirs.