We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ccadeb commit e8f64a8Copy full SHA for e8f64a8
s3fs/core.py
@@ -912,7 +912,10 @@ async def _find(
912
# Explicitly add directories to their parents in the dircache
913
for d in dirs:
914
par = self._parent(d["name"])
915
- if par in thisdircache:
+ # extra condition here (in any()) to deal with director-marking files
916
+ if par in thisdircache and not any(
917
+ _["name"] == d["name"] for _ in thisdircache[par]
918
+ ):
919
thisdircache[par].append(d)
920
921
if not prefix:
0 commit comments