Commit 016d8a1
committed
fix: correctly handle literal file paths containing brackets
- Updated argument parsing in [GPTBatch.py](cci:7://file:///e:/Small-Scripts/Programming/GPTBatch.py:0:0-0:0) to check `os.path.isfile(p)` before applying `glob.glob`.
- This prevents filenames with square brackets (e.g., "[MXS46LPdL5c]") from being misinterpreted as glob patterns.
- Preserves existing wildcard support while ensuring explicit file names are processed reliably.1 parent 7c6c310 commit 016d8a1
1 file changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1631 | 1631 | | |
1632 | 1632 | | |
1633 | 1633 | | |
1634 | | - | |
| 1634 | + | |
| 1635 | + | |
| 1636 | + | |
| 1637 | + | |
| 1638 | + | |
| 1639 | + | |
| 1640 | + | |
1635 | 1641 | | |
1636 | 1642 | | |
1637 | 1643 | | |
| |||
0 commit comments