Add option --file-access-retries (#2066)
Closes #517 Authored by: ehoogeveen-medweb
This commit is contained in:
parent
663949f825
commit
205a0654c0
8 changed files with 37 additions and 13 deletions
|
|
@ -16,7 +16,6 @@ from ..utils import (
|
|||
ContentTooShortError,
|
||||
encodeFilename,
|
||||
int_or_none,
|
||||
sanitize_open,
|
||||
sanitized_Request,
|
||||
ThrottledDownload,
|
||||
write_xattr,
|
||||
|
|
@ -263,7 +262,7 @@ class HttpFD(FileDownloader):
|
|||
# Open destination file just in time
|
||||
if ctx.stream is None:
|
||||
try:
|
||||
ctx.stream, ctx.tmpfilename = sanitize_open(
|
||||
ctx.stream, ctx.tmpfilename = self.sanitize_open(
|
||||
ctx.tmpfilename, ctx.open_mode)
|
||||
assert ctx.stream is not None
|
||||
ctx.filename = self.undo_temp_name(ctx.tmpfilename)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue