1--- 2c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. 3SPDX-License-Identifier: curl 4Long: create-dirs 5Help: Create necessary local directory hierarchy 6Category: output 7Added: 7.10.3 8Multi: boolean 9See-also: 10 - ftp-create-dirs 11 - output-dir 12Example: 13 - --create-dirs --output local/dir/file $URL 14--- 15 16# `--create-dirs` 17 18When used in conjunction with the --output option, curl creates the necessary 19local directory hierarchy as needed. This option creates the directories 20mentioned with the --output option combined with the path possibly set with 21--output-dir. If the combined output filename uses no directory, or if the 22directories it mentions already exist, no directories are created. 23 24Created directories are made with mode 0750 on Unix-style file systems. 25 26To create remote directories when using FTP or SFTP, try --ftp-create-dirs. 27