MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / GetGroup

Function GetGroup

agent/utils/files/utils.go:73–79  ·  view source on GitHub ↗
(gid uint32)

Source from the content-addressed store, hash-verified

71}
72
73func GetGroup(gid uint32) string {
74 usr, err := user.LookupGroupId(strconv.Itoa(int(gid)))
75 if err != nil {
76 return ""
77 }
78 return usr.Name
79}
80
81const dotCharacter = 46
82

Callers 2

NewFileInfoFunction · 0.85
processFilesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected