mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
13 lines
236 B
Go
13 lines
236 B
Go
// +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
|
|
}
|