You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Infinite recursion in walk() when S3 bucket contains object with key / #953
On current main against moto, walk() no longer recurses, but a / key still shows up oddly: as bucket/ in ls and bucket// in find(withdirs=True). Is filtering that entry out something you would want? If so, I can open a PR.
Activity
martindurant commentedon Mar 25, 2025
Hmm, the case of a key called simply "/" was clearly not considered or encountered so far. Can you get around the problem using
find(), perhaps?itzzdev09 commentedon Sep 16, 2026
On current
mainagainst moto,walk()no longer recurses, but a/key still shows up oddly: asbucket/inlsandbucket//infind(withdirs=True). Is filtering that entry out something you would want? If so, I can open a PR.martindurant commentedon Sep 16, 2026
Yes please - it should not be too complicated
itzzdev09 commentedon Sep 16, 2026
Opened #1043 for this. @martindurant