blob: d8fc3f14137da015cea7aa016f16dafaa9d3fb08 [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: no-clobber
4Help: Do not overwrite files that already exist
5Category: curl output
6Added: 7.83.0
7See-also: output remote-name
8Example: --no-clobber --output local/dir/file $URL
9Multi: boolean
10---
11When used in conjunction with the --output, --remote-header-name,
12--remote-name, or --remote-name-all options, curl avoids overwriting files
13that already exist. Instead, a dot and a number gets appended to the name
14of the file that would be created, up to filename.100 after which it will not
15create any file.
16
17Note that this is the negated option name documented. You can thus use
18--clobber to enforce the clobbering, even if --remote-header-name or -J is
19specified.