The cross-harness, self-improving memory layer for AI agents. Join our community: https://discord.com/invite/zdNChS2fBu
Go agent-ai-cliagent-harnessesagent-securitybrowser-extensionciclaude-codecloudcodexcursordetection-engineeringjevknowledge-basememorymobile-device-managementobservabilitysecuritysecurity-information-and-event-managementsecurity-toolstelemetrytraces
//go:build windows
package account
import "golang.org/x/sys/windows"
func replaceFile(source, destination string) error {
sourcePtr, err := windows.UTF16PtrFromString(source)
if err != nil {
return err
}
destinationPtr, err := windows.UTF16PtrFromString(destination)
if err != nil {
return err
}
return windows.MoveFileEx(
sourcePtr,
destinationPtr,
windows.MOVEFILE_REPLACE_EXISTING|windows.MOVEFILE_WRITE_THROUGH,
)
}