Skip to content

Propagate I/O errors from IsDirEmpty instead of reporting empty - #489

Open
KillerX wants to merge 2 commits into
fix/06-languages-empty-codesfrom
fix/07-isdirempty-eof
Open

Propagate I/O errors from IsDirEmpty instead of reporting empty#489
KillerX wants to merge 2 commits into
fix/06-languages-empty-codesfrom
fix/07-isdirempty-eof

Conversation

@KillerX

@KillerX KillerX commented Aug 21, 2026

Copy link
Copy Markdown
Member

Any Readdirnames error was reported as (true, nil) and fed directory deletion. Only io.EOF now means empty.

Part of the stacked bugfix series fix/00 → fix/20; based on fix/06-languages-empty-codes.

🤖 Generated with Claude Code

@KillerX
KillerX force-pushed the fix/07-isdirempty-eof branch from 6b37a53 to 3f9e2ab Compare August 21, 2026 10:59
KillerX and others added 2 commits August 21, 2026 13:08
Only io.EOF from Readdirnames means the directory is empty; any other
error (permission denied, not a directory, EIO) is now returned to the
caller instead of classifying the directory as empty.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@KillerX
KillerX force-pushed the fix/07-isdirempty-eof branch from 3f9e2ab to c6e3065 Compare August 21, 2026 11:09
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.

1 participant