Skip to content

fix: keep the walk flat key sorted on Windows - #3

Merged
harshavardhana merged 1 commit into
minio:mainfrom
balamurugana:exhibit-walk-order
Oct 13, 2026
Merged

harshavardhana merged 1 commit into
minio:mainfrom
balamurugana:exhibit-walk-order

Conversation

@balamurugana

@balamurugana balamurugana commented Oct 13, 2026 •

Copy link
Copy Markdown
Member

A directory is taken to end in / before sorting, so the walk comes out in
flat key order: the order an object store lists the same names in. byName
appended os.PathSeparator instead, which is that byte on Unix but 0x5C on
Windows, above the digits and the upper case letters, so a directory there
sorted after siblings it should have come before.

Unix is unchanged, the separator there being / already. The test asserts
the documented order, and the workflow runs it on ubuntu, macos and windows.

@coderabbitai

coderabbitai Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 085b0d8f-1f90-4857-a41f-13edc49215cb
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@balamurugana balamurugana changed the title test: show the walk is not flat key sorted on Windows fix: keep the walk flat key sorted on Windows Oct 13, 2026
A directory is taken to end in `/` before sorting, so the walk comes out in
flat key order: the order an object store lists the same names in. byName
appended os.PathSeparator instead, which is that byte on Unix but 0x5C on
Windows, above the digits and the upper case letters, so a directory there
sorted after siblings it should have come before.

Unix is unchanged, the separator there being `/` already. The test asserts
the documented order, and the workflow runs it on ubuntu, macos and windows.

Signed-off-by: Bala.FA <bala@minio.io>
@harshavardhana
harshavardhana merged commit ecb35e3 into minio:main Oct 13, 2026
5 checks passed
@balamurugana
balamurugana deleted the exhibit-walk-order branch October 13, 2026 08:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants