Commit b43c4e1
Fix exists() to handle execution failures defensively
Revert error propagation change from c6c6068. The exists() method
should treat command execution failures as 'file does not exist'
rather than propagating errors, matching standard behavior in
Python's os.path.exists() and JavaScript's fs.existsSync().
This fixes the failing unit test:
FileService > exists > should handle execution failures gracefully
Co-authored-by: Naresh <[email protected]>1 parent c6c6068 commit b43c4e1
1 file changed
+3
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
721 | 721 | | |
722 | 722 | | |
723 | 723 | | |
724 | | - | |
| 724 | + | |
725 | 725 | | |
726 | | - | |
727 | | - | |
728 | | - | |
729 | | - | |
730 | | - | |
731 | | - | |
732 | | - | |
733 | | - | |
734 | | - | |
| 726 | + | |
| 727 | + | |
735 | 728 | | |
736 | 729 | | |
737 | 730 | | |
| |||
0 commit comments