Files
privatae-bastion/client-go/doorfw_sysdir_windows.go
T
Privatae 48899b41a9
ci / personal-data (push) Successful in 4s
ci / test (push) Successful in 4m58s
ci / fuzz (push) Successful in 3m33s
bastion 0.63.1
2026-11-03 22:56:18 +00:00

14 lines
284 B
Go

//go:build windows
package main
import "golang.org/x/sys/windows"
// systemDir is System32, from Windows itself rather than the environment.
func systemDir() string {
if d, err := windows.GetSystemDirectory(); err == nil && d != "" {
return d
}
return `C:\Windows\System32`
}