mirror of
https://github.com/chrislusf/seaweedfs
synced 2024-08-29 05:00:38 +02:00
14 lines
322 B
Go
14 lines
322 B
Go
//go:build linux || darwin || freebsd || netbsd || openbsd || plan9 || solaris || zos
|
|
// +build linux darwin freebsd netbsd openbsd plan9 solaris zos
|
|
|
|
package util
|
|
|
|
import (
|
|
"os"
|
|
"syscall"
|
|
)
|
|
|
|
func GetFileUidGid(fi os.FileInfo) (uid, gid uint32) {
|
|
return fi.Sys().(*syscall.Stat_t).Uid, fi.Sys().(*syscall.Stat_t).Gid
|
|
}
|