Commit 8b837b9
refactor: remove protocol=='file' special case in exists() and isdir()
fsspec's local filesystem already handles exists() and isdir()
correctly for both files and directories. The protocol-specific
branches were unnecessary — self.fs.exists() and self.fs.isdir()
work uniformly across all backends including local files.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent e9f60e8 commit 8b837b9
1 file changed
+4
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
555 | 555 | | |
556 | 556 | | |
557 | 557 | | |
558 | | - | |
| 558 | + | |
559 | 559 | | |
560 | 560 | | |
561 | 561 | | |
| |||
565 | 565 | | |
566 | 566 | | |
567 | 567 | | |
568 | | - | |
| 568 | + | |
569 | 569 | | |
570 | 570 | | |
571 | 571 | | |
572 | | - | |
573 | | - | |
574 | | - | |
575 | | - | |
576 | | - | |
| 572 | + | |
577 | 573 | | |
578 | 574 | | |
579 | 575 | | |
| |||
590 | 586 | | |
591 | 587 | | |
592 | 588 | | |
593 | | - | |
594 | | - | |
595 | | - | |
596 | | - | |
| 589 | + | |
597 | 590 | | |
598 | 591 | | |
599 | 592 | | |
| |||
0 commit comments