File tree Expand file tree Collapse file tree 2 files changed +17
-3
lines changed
Expand file tree Collapse file tree 2 files changed +17
-3
lines changed Original file line number Diff line number Diff line change 6464 "--existing" ,
6565 type = click .Choice (list (DownloadExisting )),
6666 # TODO: verify-reupload (to become default)
67- help = "What to do if a file found existing locally. 'refresh': verify "
68- "that according to the size and mtime, it is the same file, if not - "
69- "download and overwrite." ,
67+ help = "How to handle paths that already exist locally. "
68+ "For 'error', if the local file exists, display an error and skip downloading that asset. "
69+ "For 'skip', if the local file exists, skip downloading that asset. "
70+ "For 'overwrite', if the local file exists, overwrite that asset. "
71+ "For 'overwrite-different', if the local file's hash is the same as on the server, the asset "
72+ "is skipped; otherwise, it is redownloaded. "
73+ "For 'refresh', if the local file's size and mtime are the same as on the server, the asset "
74+ "is skipped; otherwise, it is redownloaded." ,
7075 default = "error" ,
7176 show_default = True ,
7277)
Original file line number Diff line number Diff line change @@ -20,6 +20,15 @@ Options
2020
2121 How to handle paths that already exist locally [default: ``error ``]
2222
23+ For ``error ``, if the local file exists, display an error and skip downloading that asset.
24+
25+ For ``skip ``, if the local file exists, skip downloading that asset.
26+
27+ For ``overwrite ``, if the local file exists, overwrite that asset.
28+
29+ For ``overwrite-different ``, if the local file's hash is the same as on the
30+ server, the asset is skipped; otherwise, it is redownloaded.
31+
2332 For ``refresh ``, if the local file's size and mtime are the same as on the
2433 server, the asset is skipped; otherwise, it is redownloaded.
2534
You can’t perform that action at this time.
0 commit comments