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: output-dir |
| 4 | Arg: <dir> |
| 5 | Help: Directory to save files in |
| 6 | Added: 7.73.0 |
| 7 | See-also: remote-name remote-header-name |
| 8 | Category: curl |
| 9 | Example: --output-dir "tmp" -O $URL |
| 10 | Multi: single |
| 11 | --- |
| 12 | This option specifies the directory in which files should be stored, when |
| 13 | --remote-name or --output are used. |
| 14 | |
| 15 | The given output directory is used for all URLs and output options on the |
| 16 | command line, up until the first --next. |
| 17 | |
| 18 | If the specified target directory does not exist, the operation will fail |
| 19 | unless --create-dirs is also used. |