- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 51 for isAbs (0.19 sec)
-
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) -
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) -
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) -
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) -
src/syscall/fs_wasip1.go
var dirFd = int32(-1) var dirName string dir := "/" if !isAbs(path) { dir = cwd } path = joinPath(dir, path) for _, p := range preopens { if len(p.name) > len(dirName) && stringslite.HasPrefix(path, p.name) { dirFd, dirName = p.fd, p.name } } path = path[len(dirName):] for isAbs(path) { path = path[1:] } if len(path) == 0 { path = "." }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 19:57:43 UTC 2024 - 24.1K bytes - Viewed (0) -
src/cmd/go/internal/envcmd/env.go
if strings.HasPrefix(val, "~") { return fmt.Errorf("GOPATH entry cannot start with shell metacharacter '~': %q", val) } if !filepath.IsAbs(val) && val != "" { return fmt.Errorf("GOPATH entry is relative; must be absolute path: %q", val) } case "GOMODCACHE": if !filepath.IsAbs(val) && val != "" { return fmt.Errorf("GOMODCACHE entry is relative; must be absolute path: %q", val) } case "CC", "CXX":
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 17:13:51 UTC 2024 - 19.6K bytes - Viewed (0) -
src/cmd/go/internal/work/init.go
buildModeInit() if err := fsys.Init(base.Cwd()); err != nil { base.Fatal(err) } // Make sure -pkgdir is absolute, because we run commands // in different directories. if cfg.BuildPkgdir != "" && !filepath.IsAbs(cfg.BuildPkgdir) { p, err := filepath.Abs(cfg.BuildPkgdir) if err != nil { fmt.Fprintf(os.Stderr, "go: evaluating -pkgdir: %v\n", err) base.SetExitStatus(2) base.Exit() } cfg.BuildPkgdir = p }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 28 19:13:34 UTC 2023 - 12.2K bytes - Viewed (0) -
src/cmd/doc/main.go
// First, is it a complete package path as it is? If so, we are done. // This avoids confusion over package paths that have other // package paths as their prefix. var importErr error if filepath.IsAbs(arg) { pkg, importErr = build.ImportDir(arg, build.ImportComment) if importErr == nil { return pkg, arg, "", false } } else { pkg, importErr = build.Import(arg, wd, build.ImportComment)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 19:41:17 UTC 2024 - 12.2K bytes - Viewed (0) -
src/cmd/go/internal/modfetch/proxy.go
// complete URL. For all other paths, implicitly add "https://". if strings.ContainsAny(url, ".:/") && !strings.Contains(url, ":/") && !filepath.IsAbs(url) && !path.IsAbs(url) { url = "https://" + url } // Check that newProxyRepo accepts the URL. // It won't do anything with the path. if _, err := newProxyRepo(url, "golang.org/x/text"); err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 03 15:21:05 UTC 2023 - 13K bytes - Viewed (0) -
src/cmd/vendor/github.com/google/pprof/internal/symbolizer/symbolizer.go
} missingBinaries = true continue } if m.Unsymbolizable() { // Skip well-known system mappings continue } if m.BuildID == "" { if u, err := url.Parse(m.File); err == nil && u.IsAbs() && strings.Contains(strings.ToLower(u.Scheme), "http") { // Skip mappings pointing to a source URL continue } } name := filepath.Base(m.File) if m.BuildID != "" {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 31 19:48:28 UTC 2024 - 10K bytes - Viewed (0)