Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/webdav4/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -578,11 +578,13 @@ def open(
raise IsACollectionError(path, "Cannot open a collection")
assert mode in {"r", "rt", "rb"}

with IterStream(
call = wrap_fn(IterStream,
self,
self.join_url(path),
chunk_size=chunk_size or self.chunk_size,
) as buffer:
)

with self.with_retry(call) as buffer:
buff = cast(BinaryIO, buffer)

if mode == "rb":
Expand Down