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

Function GetPersistentRemoteSockName

pkg/wavebase/wavebase.go:188–190  ·  view source on GitHub ↗

returns a Unix-style path for the remote socket (using fmt.Sprintf instead of filepath.Join because this path is for a remote Unix system, not the local OS which might be Windows)

(clientId string)

Source from the content-addressed store, hash-verified

186// returns a Unix-style path for the remote socket (using fmt.Sprintf instead of filepath.Join
187// because this path is for a remote Unix system, not the local OS which might be Windows)
188func GetPersistentRemoteSockName(clientId string) string {
189 return fmt.Sprintf("~/.waveterm/client/%s/waveterm.sock", clientId)
190}
191
192func EnsureWaveDataDir() error {
193 return CacheEnsureDir(GetWaveDataDir(), "wavehome", 0700, "wave home directory")

Callers 2

ConnServerInitCommandMethod · 0.92
startNewJobMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected