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