1//go:build windows
2
3package fsext
4
5import "os"
6
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
15}