working commit

This commit is contained in:
2026-03-13 19:02:42 +02:00
parent bebbf79c7a
commit 5c1da77f4c
1329 changed files with 314708 additions and 39 deletions
+18
View File
@@ -0,0 +1,18 @@
// Copyright 2022 The Kubernetes Authors.
// SPDX-License-Identifier: Apache-2.0
package filesys
import (
"path/filepath"
"golang.org/x/sys/windows"
)
func getOSRoot() (string, error) {
sysDir, err := windows.GetSystemDirectory()
if err != nil {
return "", err
}
return filepath.VolumeName(sysDir) + `\`, nil
}