mirror of
https://github.com/versity/versitygw.git
synced 2026-09-08 09:06:59 +00:00
Replace the length-comparison condition with an explicit predicate that is both more readable and correctly scoped: skip only when the visited directory is a strict ancestor of the specified prefix (not a descendant and not when prefix is empty). Adds tests from the original bug report (#1864) to verify the fix and guard against future regressions.