MCPcopy
hub / github.com/ddworken/hishtory / getTmpClientPath

Function getTmpClientPath

client/cmd/update.go:275–281  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

273}
274
275func getTmpClientPath() string {
276 tmpDir := "/tmp/"
277 if os.Getenv("TMPDIR") != "" {
278 tmpDir = os.Getenv("TMPDIR")
279 }
280 return path.Join(tmpDir, "hishtory-client")
281}
282
283func downloadFile(filename, url string) error {
284 // Support simulating network errors for the purposes of testing

Callers 3

updateFunction · 0.85
verifyBinaryMacFunction · 0.85
downloadFilesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected