change project structure
This commit is contained in:
17
cmd/multini/stat_unix.go
Normal file
17
cmd/multini/stat_unix.go
Normal file
@ -0,0 +1,17 @@
|
||||
// +build !windows
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
"os"
|
||||
"syscall"
|
||||
)
|
||||
|
||||
func GetUidGid(info os.FileInfo) (int, int) {
|
||||
stat, ok := info.Sys().(*syscall.Stat_t)
|
||||
if ok {
|
||||
return int(stat.Uid), int(stat.Gid)
|
||||
} else {
|
||||
return -1, -1
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user