mirror of
https://mirror.skon.top/github.com/affaan-m/everything-claude-code
synced 2026-04-22 01:30:40 +08:00
On Unix/macOS, rename(2) atomically replaces the destination file. The previous code ran unlinkSync before renameSync on all platforms, creating an unnecessary non-atomic window where a crash could lose data. Now the delete-before-rename is gated behind process.platform === 'win32', where rename cannot overwrite an existing file.