Repository navigation
Commit c5e3ab5
committed
Python: refuse the store root in delete_directory on both backends
The filesystem backend resolved the empty path to the configured store root and rmdir'd it, returning True, while the in-memory backend raised on the same call from re-normalizing the already normalized path as a file path. Both now return False for the empty or whitespace-only path before touching storage, the in-memory store normalizes once, and the parity test covers the empty path and whitespace spelling on both backends.
Signed-off-by: Manohar Paturi <[email protected]>1 parent 4c6ce3b commit c5e3ab5
2 files changed
Lines changed: 21 additions & 2 deletions
File tree
- python/packages/core
- agent_framework/_harness
- tests/core
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1181 | 1181 | | |
1182 | 1182 | | |
1183 | 1183 | | |
1184 | | - | |
| 1184 | + | |
| 1185 | + | |
| 1186 | + | |
| 1187 | + | |
| 1188 | + | |
| 1189 | + | |
1185 | 1190 | | |
1186 | 1191 | | |
1187 | 1192 | | |
| |||
1578 | 1583 | | |
1579 | 1584 | | |
1580 | 1585 | | |
1581 | | - | |
| 1586 | + | |
| 1587 | + | |
| 1588 | + | |
| 1589 | + | |
| 1590 | + | |
| 1591 | + | |
1582 | 1592 | | |
1583 | 1593 | | |
1584 | 1594 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2758 | 2758 | | |
2759 | 2759 | | |
2760 | 2760 | | |
| 2761 | + | |
| 2762 | + | |
| 2763 | + | |
| 2764 | + | |
| 2765 | + | |
| 2766 | + | |
| 2767 | + | |
| 2768 | + | |
| 2769 | + | |
2761 | 2770 | | |
2762 | 2771 | | |
2763 | 2772 | | |
| |||
0 commit comments