Skip to content

Commit a79fc88

Browse files
committed
Revert "http: fix get_file()s signature"
This reverts commit df58af7.
1 parent 27894e1 commit a79fc88

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

fsspec/implementations/http.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -232,21 +232,21 @@ async def _cat_file(self, url, start=None, end=None, **kwargs):
232232
return out
233233

234234
async def _get_file(
235-
self, lpath, rpath, chunk_size=5 * 2 ** 20, callback=_DEFAULT_CALLBACK, **kwargs
235+
self, rpath, lpath, chunk_size=5 * 2 ** 20, callback=_DEFAULT_CALLBACK, **kwargs
236236
):
237237
kw = self.kwargs.copy()
238238
kw.update(kwargs)
239-
logger.debug(lpath)
239+
logger.debug(rpath)
240240
session = await self.set_session()
241-
async with session.get(lpath, **self.kwargs) as r:
241+
async with session.get(rpath, **self.kwargs) as r:
242242
try:
243243
size = int(r.headers["content-length"])
244244
except (ValueError, KeyError):
245245
size = None
246246

247247
callback.set_size(size)
248-
self._raise_not_found_for_status(r, lpath)
249-
with open(rpath, "wb") as fd:
248+
self._raise_not_found_for_status(r, rpath)
249+
with open(lpath, "wb") as fd:
250250
chunk = True
251251
while chunk:
252252
chunk = await r.content.read(chunk_size)

0 commit comments

Comments
 (0)