mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-25 23:09:49 +01:00
import: resume download
Download to .part file first and rename at the very end, so if we lose connection we could resume download. Note: not all servers support 'Range' header, so this feature is not going to work everywhere. This feature is activated by -c/--continue cmdline option. Fixes #108 Signed-off-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
@@ -223,6 +223,12 @@ def parse_args(argv=None):
|
||||
type=int,
|
||||
default=cpu_count(),
|
||||
help='Number of jobs to run simultaneously.')
|
||||
import_parser.add_argument('-c',
|
||||
'--continue',
|
||||
dest='cont',
|
||||
action='store_true',
|
||||
default=False,
|
||||
help='Resume downloading file from url')
|
||||
import_parser.set_defaults(func=CmdImportFile)
|
||||
|
||||
# Lock
|
||||
|
||||
Reference in New Issue
Block a user