Skip to content

Conversation

@jayvdb
Copy link
Contributor

@jayvdb jayvdb commented Dec 11, 2025

The LocalFileSystem backend incorrectly treated the prefix parameter as a directory path, walking only that specific directory instead of filtering results with prefix_matches.

Changes:

  • Walk from parent directory instead of treating prefix as directory
  • Filter results using Path::prefix_matches
  • Handle special case: listing exact file path returns empty

Which issue does this PR close?

Fixes #573

Rationale for this change

So the backends work in a similar way.

What changes are included in this PR?

Are there any user-facing changes?

The LocalFileSystem backend incorrectly treated the prefix parameter
as a directory path, walking only that specific directory instead of
filtering results with prefix_matches.

Changes:
- Walk from parent directory instead of treating prefix as directory
- Filter results using Path::prefix_matches
- Handle special case: listing exact file path returns empty
@crepererum
Copy link
Contributor

needs a clippy fix

@tustvold
Copy link
Contributor

All of these tests pass on current main, nor do I really understand what this PR is trying to fix?

@tustvold
Copy link
Contributor

Chalking this up as being AI slop

@tustvold tustvold closed this Dec 16, 2025
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.

local path filtering has different semantics

3 participants