Commit a39317a
fix: handle PermissionError for directory input on Windows CLI (#3149)
* fix: handle PermissionError for directory input on Windows CLI
On Windows, Path.read_bytes() on a directory raises PermissionError
instead of IsADirectoryError (which is raised on Linux/macOS). This
caused the CLI to crash when a directory was passed as input source.
Catch PermissionError alongside IsADirectoryError so directory inputs
are handled correctly on all platforms.
Fixes #3138
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* DCO Remediation Commit for Joaquin Hui Gomez <joaquinhui1995@gmail.com>
I, Joaquin Hui Gomez <joaquinhui1995@gmail.com>, hereby add my Signed-off-by to this commit: 90c738c
Signed-off-by: Joaquin Hui Gomez <joaquinhui1995@gmail.com>
---------
Signed-off-by: Joaquin Hui Gomez <joaquinhui1995@gmail.com>
Co-authored-by: Joaquin Hui Gomez <joaquinhui1995@gmail.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 412af62 commit a39317a
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
654 | 654 | | |
655 | 655 | | |
656 | 656 | | |
657 | | - | |
| 657 | + | |
658 | 658 | | |
659 | 659 | | |
660 | 660 | | |
| |||
0 commit comments