Repository navigation
Commit ab17fcb
committed
Tighten symlink removal in pack-skills.mjs
In the pre branch, replace rmSync({ recursive: true }) with unlinkSync
when removing a confirmed symlink. rmSync with recursive is the right
call for directories but misleading for a symlink; unlinkSync is the
correct and explicit API.
In the post branch, add force: true to rmSync so that a missing
skillsPath (e.g. after a manual recovery or half-interrupted prepack)
does not throw ENOENT and leave the sentinel file stranded.
fedify-dev#756 (comment)
fedify-dev#756 (comment)
Assisted-by: Claude Code:claude-sonnet-4-61 parent 94676cf commit ab17fcb
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
0 commit comments