- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for UserCacheDir (0.25 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) -
src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go
{"SyscallError", Type, 0}, {"SyscallError.Err", Field, 0}, {"SyscallError.Syscall", Field, 0}, {"TempDir", Func, 0}, {"Truncate", Func, 0}, {"Unsetenv", Func, 4}, {"UserCacheDir", Func, 11}, {"UserConfigDir", Func, 13}, {"UserHomeDir", Func, 12}, {"WriteFile", Func, 16}, }, "os/exec": { {"(*Cmd).CombinedOutput", Method, 0}, {"(*Cmd).Environ", Method, 19},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 534.2K bytes - Viewed (0)