MCPcopy Create free account
hub / github.com/brimdata/super / headPath

Function headPath

cli/poolflags/state.go:12–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10const headFile = ".super_head"
11
12func headPath() string {
13 dir := os.Getenv("SUPER_HEAD_DIR")
14 if dir == "" {
15 dir, _ = os.UserHomeDir()
16 }
17 if dir == "." {
18 dir = ""
19 }
20 return filepath.Join(dir, headFile)
21}
22
23func readHead() (string, error) {
24 b, err := os.ReadFile(headPath())

Callers 2

readHeadFunction · 0.85
WriteHeadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected