MCPcopy Index your code
hub / github.com/perkeep/perkeep / rootInTmpDir

Function rootInTmpDir

dev/devcam/env.go:100–106  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

98}
99
100func rootInTmpDir() (string, error) {
101 user := osutil.Username()
102 if user == "" {
103 return "", errors.New("Could not get username from environment")
104 }
105 return filepath.Join(os.TempDir(), "camliroot-"+user), nil
106}
107
108func setCamdevVarsFor(e *Env, altkey bool) {
109 var setenv func(string, string) error

Callers 2

setCamdevVarsForFunction · 0.85
setRootMethod · 0.85

Calls 1

UsernameFunction · 0.92

Tested by

no test coverage detected