Skip to content

Commit 52a6665

Browse files
authored
Add missing await statement to GenericFileSystem._cp_file (#1094)
1 parent 0042c63 commit 52a6665

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎fsspec/generic.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ async def _cp_file(
170170
if hasattr(fs, "open_async")
171171
else fs.open(url, "rb", **kw)
172172
)
173-
callback.set_size(maybe_await(f1.size))
173+
callback.set_size(await maybe_await(f1.size))
174174
f2 = (
175175
await fs2.open_async(url2, "wb")
176176
if hasattr(fs2, "open_async")

0 commit comments

Comments
 (0)