curl/docs/cmdline-opts/skip-existing.md
Daniel Stenberg 732cb15b97
curl: add --skip-existing
With this option, the entire download is skipped if the selected target
filename already exists when the opertion is about to begin.

Test 994, 995 and 996 verify.

Ref: #11012
Closes #13993
2024-08-04 23:28:09 +02:00

650 B

c SPDX-License-Identifier Long Help Category Added Multi See-also Example
Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. curl skip-existing Skip download if local file already exists curl output 8.10.0 boolean
output
remote-name
no-clobber
--skip-existing --output local/dir/file $URL

--skip-existing

If there is a local file present when a download is requested, the operation is skipped. Note that curl cannot know if the local file was previously downloaded fine, or if it is incomplete etc, it just knows if there is a filename present in the file system or not and it skips the transfer if it is.