on 94de6bc help sign in
crush/internal/fsext/owner_windows.go
15 lines 261 B history raw
1//go:build windows
3package fsext
5import "os"
7// Owner retrieves the user ID of the owner of the file or directory at the
8// specified path.
9func Owner(path string) (int, error) {
10 _, err := os.Stat(path)
11 if err != nil {
12 return 0, err
13 }
14 return -1, nil