Skip to content

Fixed ls() bug when files have the same prefix - #549

Merged
kyleknap merged 5 commits into
fsspec:mainfrom
anjaliratnam-msft:ls-bug
Aug 11, 2026
Merged

Fixed ls() bug when files have the same prefix#549
kyleknap merged 5 commits into
fsspec:mainfrom
anjaliratnam-msft:ls-bug

Conversation

@anjaliratnam-msft

Copy link
Copy Markdown
Collaborator

This addresses a bug where a filepath is passed into ls() and it shares the same prefix as other files in the same directory resulting in incorrect results. This resolves #406 and resolves #409.

@martindurant

Copy link
Copy Markdown
Member

@shcheklein , maybe?

@anjaliratnam-msft , was there a reason this stalled?

@anjaliratnam-msft

Copy link
Copy Markdown
Collaborator Author

Hi @martindurant. Yeah, after taking a look at it again and talking to some team members, there's some changes I want to make to the PR today. Mainly just moving the logic to filter_blobs. After that, someone from my team should be able to review it next week.

@martindurant

Copy link
Copy Markdown
Member

Perfect, thank you.

@kyleknap kyleknap left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! I just had a couple of comments.

Comment thread adlfs/utils.py Outdated
Comment thread CHANGELOG.md Outdated
Comment thread adlfs/utils.py Outdated

@kyleknap kyleknap left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! 🚢

@kyleknap
kyleknap merged commit 838f082 into fsspec:main Aug 11, 2026
8 checks passed
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.

AzureBlobFileSystem.ls(path) returns inconsistent results Cannot read parquet from Azure when archive file exists

4 participants