Commit d261f73
committed
fix(volumecache): treat a scalar dirs path as a single directory
Passing dirs as a bare string/Path (e.g. dirs="/root/.cache") iterated it
character by character, putting entries like "/" into _dirs and making
sync/hydrate walk far broader paths than intended. Normalize scalar
str/bytes/PathLike input to a one-element list. Addresses capy-ai review
on PR #531.1 parent 0883400 commit d261f73
2 files changed
Lines changed: 22 additions & 0 deletions
File tree
- runpod/serverless/utils
- tests/test_serverless/test_utils
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
60 | 64 | | |
61 | 65 | | |
62 | 66 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
81 | 99 | | |
82 | 100 | | |
83 | 101 | | |
| |||
0 commit comments