- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for UserCacheDir (0.15 sec)
-
src/cmd/go/internal/cache/default.go
// initDefaultCache. cmd/go/main.go explicitly sets GOCACHE so that // subprocesses will inherit it, but that means initDefaultCache can't // otherwise distinguish between an explicit "off" and a UserCacheDir error. defaultDirOnce.Do(func() { defaultDir = cfg.Getenv("GOCACHE") if defaultDir != "" { defaultDirChanged = true if filepath.IsAbs(defaultDir) || defaultDir == "off" { return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 14:34:32 UTC 2024 - 3K bytes - Viewed (0) -
src/os/file.go
// On Plan 9, it returns /tmp. // // The directory is neither guaranteed to exist nor have accessible // permissions. func TempDir() string { return tempDir() } // UserCacheDir returns the default root directory to use for user-specific // cached data. Users should create their own application-specific subdirectory // within this one and use that. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 26 23:07:37 UTC 2024 - 25.4K bytes - Viewed (0) -
src/os/os_test.go
t.Run("dir", testDoubleCloseError(sfdir)) } func TestUserCacheDir(t *testing.T) { t.Parallel() dir, err := UserCacheDir() if err != nil { t.Skipf("skipping: %v", err) } if dir == "" { t.Fatalf("UserCacheDir returned %q; want non-empty path or error", dir) } fi, err := Stat(dir) if err != nil { if IsNotExist(err) { t.Log(err) return
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 83.1K bytes - Viewed (0)