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

Function GetSymlink

agent/utils/files/utils.go:57–63  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

55}
56
57func GetSymlink(path string) string {
58 linkPath, err := os.Readlink(path)
59 if err != nil {
60 return ""
61 }
62 return linkPath
63}
64
65func GetUsername(uid uint32) string {
66 usr, err := user.LookupId(strconv.Itoa(int(uid)))

Callers 2

NewFileInfoFunction · 0.85
processFilesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected