blob: 01b7ccf92be487c35d42f5a4ed206669007969e6 [file] [log] [blame]
xf.li6c8fc1e2023-08-12 00:11:09 -07001c: Copyright (C) 1998 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al.
2SPDX-License-Identifier: curl
3Long: create-dirs
4Help: Create necessary local directory hierarchy
5Category: curl
6Example: --create-dirs --output local/dir/file $URL
7Added: 7.10.3
8See-also: ftp-create-dirs output-dir
9Multi: boolean
10---
11When used in conjunction with the --output option, curl will create the
12necessary local directory hierarchy as needed. This option creates the
13directories mentioned with the --output option, nothing else. If the --output
14file name uses no directory, or if the directories it mentions already exist,
15no directories will be created.
16
17Created dirs are made with mode 0750 on unix style file systems.
18
19To create remote directories when using FTP or SFTP, try --ftp-create-dirs.