xref: /curl/docs/cmdline-opts/skip-existing.md (revision 732cb15b)
1---
2c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
3SPDX-License-Identifier: curl
4Long: skip-existing
5Help: Skip download if local file already exists
6Category: curl output
7Added: 8.10.0
8Multi: boolean
9See-also:
10  - output
11  - remote-name
12  - no-clobber
13Example:
14  - --skip-existing --output local/dir/file $URL
15---
16
17# `--skip-existing`
18
19If there is a local file present when a download is requested, the operation
20is skipped. Note that curl cannot know if the local file was previously
21downloaded fine, or if it is incomplete etc, it just knows if there is a
22filename present in the file system or not and it skips the transfer if it is.
23