Files
Pulse/internal/agentupdate/pending_update_persistence_other.go
2026-08-30 03:31:00 +01:00

19 lines
287 B
Go

//go:build !windows
package agentupdate
import "os"
func replacePendingUpdateFile(from, to string) error {
return os.Rename(from, to)
}
func syncUpdateDirectory(path string) error {
dir, err := os.Open(path)
if err != nil {
return err
}
defer dir.Close()
return dir.Sync()
}