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
7 changes: 5 additions & 2 deletions fsspec/implementations/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ async def gen_chunks():
async with meth(self.encode_url(rpath), data=gen_chunks(), **kw) as resp:
self._raise_not_found_for_status(resp, rpath)

async def _exists(self, path, **kwargs):
async def _exists(self, path, strict=False, **kwargs):
kw = self.kwargs.copy()
kw.update(kwargs)
try:
Expand All @@ -336,7 +336,10 @@ async def _exists(self, path, **kwargs):
async with r:
return r.status < 400
except aiohttp.ClientError:
return False
if strict:
raise
else:
return False

async def _isfile(self, path, **kwargs):
return await self._exists(path, **kwargs)
Expand Down