Files
luet/vendor/github.com/vbatts/go-mtree/stat_unix.go
Ettore Di Giacinto 0f7ba8ce05 Update vendor
2021-10-29 16:12:26 +02:00

19 lines
311 B
Go

// +build !windows
package mtree
import (
"os"
"syscall"
)
func statIsUID(stat os.FileInfo, uid int) bool {
statT := stat.Sys().(*syscall.Stat_t)
return statT.Uid == uint32(uid)
}
func statIsGID(stat os.FileInfo, gid int) bool {
statT := stat.Sys().(*syscall.Stat_t)
return statT.Gid == uint32(gid)
}