MCPcopy
hub / github.com/wavetermdev/waveterm / GetHomeDir

Function GetHomeDir

pkg/wavebase/wavebase.go:142–148  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

140}
141
142func GetHomeDir() string {
143 homeVar, err := os.UserHomeDir()
144 if err != nil {
145 return "/"
146 }
147 return homeVar
148}
149
150func ExpandHomeDir(pathStr string) (string, error) {
151 if pathStr != "~" && !strings.HasPrefix(pathStr, "~/") && (!strings.HasPrefix(pathStr, `~\`) || runtime.GOOS != "windows") {

Callers 15

GetInfoFunction · 0.92
InstallRcFilesFunction · 0.92
GetAppDirFunction · 0.92
ListAllAppsFunction · 0.92
GetAppModTimeFunction · 0.92
ListAllEditableAppsFunction · 0.92
RenameLocalAppFunction · 0.92
GetConnectionsFromConfigFunction · 0.92
StartLocalShellProcFunction · 0.92
FixPathFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected