Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for UserCacheDir (0.28 sec)

  1. 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)
  2. src/os/example_test.go

    		log.Fatalf("link destination (%s) is not the same file as %s", dstAbs, targetPath)
    	}
    
    	// Output:
    	// hello.link links to hello.txt
    }
    
    func ExampleUserCacheDir() {
    	dir, dirErr := os.UserCacheDir()
    	if dirErr == nil {
    		dir = filepath.Join(dir, "ExampleUserCacheDir")
    	}
    
    	getCache := func(name string) ([]byte, error) {
    		if dirErr != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 17:35:49 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  3. 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)
  4. api/go1.11.txt

    pkg os, const ModeIrregular = 524288
    pkg os, const ModeIrregular FileMode
    pkg os, const ModeType = 2399666176
    pkg os, func UserCacheDir() (string, error)
    pkg os/signal, func Ignored(os.Signal) bool
    pkg regexp/syntax, method (Op) String() string
    pkg runtime/trace, func IsEnabled() bool
    pkg runtime/trace, func Log(context.Context, string, string)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 22 03:48:56 UTC 2018
    - 25K bytes
    - Viewed (0)
  5. 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)
  6. 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)
Back to top