Skip to content

Commit

Permalink
Fixed cache lookup in info
Browse files Browse the repository at this point in the history
  • Loading branch information
YeahItsMeAgain committed Dec 14, 2023
1 parent 0216856 commit a487022
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion s3fs/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1293,7 +1293,7 @@ async def _info(self, path, bucket=None, key=None, refresh=False, version_id=Non
if out:
return out[0]
else:
out = [o for o in out if o["name"] == path]
out = [o for o in out if o["name"] == fullpath]
if out:
return out[0]
return {"name": path, "size": 0, "type": "directory"}
Expand Down

0 comments on commit a487022

Please sign in to comment.