Skip to content

Raise directory errors for GitHub file opens - #2424

Merged
martindurant merged 2 commits into
fsspec:masterfrom
IlyaKhalafi:fix/github-open-directory
Nov 25, 2026
Merged

martindurant merged 2 commits into
fsspec:masterfrom
IlyaKhalafi:fix/github-open-directory

Conversation

@IlyaKhalafi

Copy link
Copy Markdown
Contributor

This PR fixes opening GitHub directories raising AttributeError. Directory responses now raise IsADirectoryError before file decoding.

Closes #2423.

Verified the regression fails before the fix. All 57 related GitHub filesystem tests pass, along with Ruff and the format check.

@martindurant
martindurant merged commit b9af96a into fsspec:master Nov 25, 2026
8 of 9 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.

Opening a GitHub directory raises AttributeError

2 participants