Repository navigation
fix: synchronous rmdir() fails silently - #85
Conversation
OSS-Contributor-Artifact: 679ddc0a35296cf762b24d17c4b87bdaba100df8da492fcf82efcb739ccd2836
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #85 +/- ##
==========================================
+ Coverage 94.30% 97.78% +3.47%
==========================================
Files 13 13
Lines 738 1130 +392
==========================================
+ Hits 696 1105 +409
+ Misses 42 25 -17 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
The other filesystem tests live in test_sshfs.py, so the rmdir test moves there from its own module, which had to import the fixtures. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thanks for the fix! I merged The macOS jobs in the earlier CI run were cancelled after 15 minutes without a test failure. With |
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported for the fix connecting synchronous directory removal to its asynchronous implementation.
No open issues 🎉
What changed in this PR
Fixes #38 by connecting SSHFileSystem.rmdir() to its asynchronous implementation, replacing the inherited no-op behavior.
Changes:
- Adds a synchronous wrapper for
_rmdir. - Adds regression coverage for empty-directory removal, missing-directory errors, and recursive removal.
| File | Description |
|---|---|
| tests/test_sshfs.py | Adds regression tests for synchronous directory removal. |
| sshfs/spec.py | Exposes _rmdir through a synchronous rmdir wrapper. |
Review effort: Balanced
Fixes #38
SSHFileSystem inherits the no-op rmdir because _rmdir lacks a synchronous wrapper.
Wrap _rmdir for synchronous directory removal; cover plain, SSH and SFTP paths, missing directories and recursive removal.
Validation: the regression fails on the original code and passes with the fix; the configured test suite and checks pass.
AI-assisted with Codex; independently tested by OSS Contributor.