MCPcopy Index your code
hub / github.com/docker/docker-agent / GetHomeDir

Function GetHomeDir

pkg/paths/paths.go:125–131  ·  view source on GitHub ↗

GetHomeDir returns the user's home directory. Returns an empty string if the home directory cannot be determined.

()

Source from the content-addressed store, hash-verified

123//
124// Returns an empty string if the home directory cannot be determined.
125func GetHomeDir() string {
126 homeDir, err := os.UserHomeDir()
127 if err != nil {
128 return ""
129 }
130 return filepath.Clean(homeDir)
131}

Callers 8

TestGetHomeDirFunction · 0.92
formatWorkingDirectoryFunction · 0.92
localSearchPathsFunction · 0.92
IsHomeSkillPathFunction · 0.92
projectSearchDirsFunction · 0.92
newACPCmdFunction · 0.92
newA2ACmdFunction · 0.92
addRunOrExecFlagsFunction · 0.92

Calls

no outgoing calls

Tested by 1

TestGetHomeDirFunction · 0.74