Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 119 for isAbs (0.06 sec)

  1. cmd/kubeadm/app/componentconfigs/kubelet_windows.go

    	// nodes, it would contain absolute paths that may lack drive letters, since the config
    	// could have been generated on a Linux control-plane node. On Windows the
    	// Golang filepath.IsAbs() function returns false unless the path contains a drive letter.
    	// This trips client-go and the kubelet, creating problems on Windows nodes.
    	// Fixing it in client-go or the kubelet is a breaking change to existing Windows
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 25 10:26:46 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  2. src/cmd/go/internal/base/env.go

    // if one or more elements of dir is a symlink.
    func AppendPWD(base []string, dir string) []string {
    	// POSIX requires PWD to be absolute.
    	// Internally we only use absolute paths, so dir should already be absolute.
    	if !filepath.IsAbs(dir) {
    		panic(fmt.Sprintf("AppendPWD with relative path %q", dir))
    	}
    	return append(base, "PWD="+dir)
    }
    
    // AppendPATH returns the result of appending PATH=$GOROOT/bin:$PATH
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 25 16:40:59 UTC 2022
    - 1.3K bytes
    - Viewed (0)
  3. src/path/filepath/path.go

    // EvalSymlinks calls [Clean] on the result.
    func EvalSymlinks(path string) (string, error) {
    	return evalSymlinks(path)
    }
    
    // IsAbs reports whether the path is absolute.
    func IsAbs(path string) bool {
    	return filepathlite.IsAbs(path)
    }
    
    // Abs returns an absolute representation of path.
    // If the path is not absolute it will be joined with the current
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  4. src/cmd/go/internal/workcmd/use.go

    	workDir := filepath.Dir(gowork) // absolute, since gowork itself is absolute
    
    	haveDirs := make(map[string][]string) // absolute → original(s)
    	for _, use := range wf.Use {
    		var abs string
    		if filepath.IsAbs(use.Path) {
    			abs = filepath.Clean(use.Path)
    		} else {
    			abs = filepath.Join(workDir, use.Path)
    		}
    		haveDirs[abs] = append(haveDirs[abs], use.Path)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Jun 03 21:13:11 UTC 2023
    - 7K bytes
    - Viewed (0)
  5. src/os/exec/lp_plan9.go

    			return "", &Error{file, err}
    		}
    	}
    
    	path := os.Getenv("path")
    	for _, dir := range filepath.SplitList(path) {
    		path := filepath.Join(dir, file)
    		if err := findExecutable(path); err == nil {
    			if !filepath.IsAbs(path) {
    				if execerrdot.Value() != "0" {
    					return path, &Error{file, ErrDot}
    				}
    				execerrdot.IncNonDefault()
    			}
    			return path, nil
    		}
    	}
    	return "", &Error{file, ErrNotFound}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:33:12 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  6. src/cmd/go/internal/search/search.go

    }
    
    // IsLocal reports whether the pattern must be resolved from a specific root or
    // directory, such as a filesystem path or a single module.
    func (m *Match) IsLocal() bool {
    	return build.IsLocalImport(m.pattern) || filepath.IsAbs(m.pattern)
    }
    
    // IsMeta reports whether the pattern is a “meta-package” keyword that represents
    // multiple packages, such as "std", "cmd", or "all".
    func (m *Match) IsMeta() bool {
    	return IsMetaPackage(m.pattern)
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 31 20:33:05 UTC 2023
    - 15.4K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/config/kubeconfig.go

    		if err != nil {
    			return "", err
    		}
    		config, ok := decodedObj.(*webhookadmission.WebhookAdmission)
    		if !ok {
    			return "", fmt.Errorf("unexpected type: %T", decodedObj)
    		}
    
    		if !path.IsAbs(config.KubeConfigFile) {
    			return "", field.Invalid(field.NewPath("kubeConfigFile"), config.KubeConfigFile, "must be an absolute file path")
    		}
    
    		kubeconfigFile = config.KubeConfigFile
    	}
    	return kubeconfigFile, nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 29 15:48:39 UTC 2023
    - 2K bytes
    - Viewed (0)
  8. src/path/filepath/path_test.go

    		for _, test := range isabstests {
    			tests = append(tests, IsAbsTest{"c:" + test.path, test.isAbs})
    		}
    	} else {
    		tests = isabstests
    	}
    
    	for _, test := range tests {
    		if r := filepath.IsAbs(test.path); r != test.isAbs {
    			t.Errorf("IsAbs(%q) = %v, want %v", test.path, r, test.isAbs)
    		}
    	}
    }
    
    type EvalSymlinksTest struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 22 16:38:19 UTC 2024
    - 47.1K bytes
    - Viewed (0)
  9. src/cmd/go/internal/test/cover.go

    // or in case it doesn't exist and the test is going to fail to create it (or not run).
    func initCoverProfile() {
    	if testCoverProfile == "" || testC {
    		return
    	}
    	if !filepath.IsAbs(testCoverProfile) {
    		testCoverProfile = filepath.Join(testOutputDir.getAbs(), testCoverProfile)
    	}
    
    	// No mutex - caller's responsibility to call with no racing goroutines.
    	f, err := os.Create(testCoverProfile)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 28 11:50:58 UTC 2022
    - 2K bytes
    - Viewed (0)
  10. src/cmd/go/internal/modindex/build.go

    		return f(s)
    	}
    	return filepath.SplitList(s)
    }
    
    // isAbsPath calls ctxt.IsAbsPath (if not nil) or else filepath.IsAbs.
    func (ctxt *Context) isAbsPath(path string) bool {
    	if f := ctxt.IsAbsPath; f != nil {
    		return f(path)
    	}
    	return filepath.IsAbs(path)
    }
    
    // isDir calls ctxt.IsDir (if not nil) or else uses fsys.Stat.
    func isDir(path string) bool {
    	fi, err := fsys.Stat(path)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 25 17:39:23 UTC 2023
    - 26.8K bytes
    - Viewed (0)
Back to top