Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 119 for isAbs (0.68 sec)

  1. internal/event/target/nsq.go

    		return nil
    	}
    
    	if n.NSQDAddress.IsEmpty() {
    		return errors.New("empty nsqdAddress")
    	}
    
    	if n.Topic == "" {
    		return errors.New("empty topic")
    	}
    	if n.QueueDir != "" {
    		if !filepath.IsAbs(n.QueueDir) {
    			return errors.New("queueDir path should be absolute")
    		}
    	}
    
    	return nil
    }
    
    // NSQTarget - NSQ target.
    type NSQTarget struct {
    	initOnce once.Init
    
    	id         event.TargetID
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  2. src/cmd/go/internal/script/state.go

    	return v, ok
    }
    
    // Path returns the absolute path in the host operating system for a
    // script-based (generally slash-separated and relative) path.
    func (s *State) Path(path string) string {
    	if filepath.IsAbs(path) {
    		return filepath.Clean(path)
    	}
    	return filepath.Join(s.pwd, path)
    }
    
    // Setenv sets the value of the environment variable in s named by the key.
    func (s *State) Setenv(key, value string) error {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 31 20:33:02 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  3. src/os/example_test.go

    	dst, err := os.Readlink(linkPath)
    	if err != nil {
    		log.Fatal(err)
    	}
    	fmt.Printf("%s links to %s\n", filepath.Base(linkPath), dst)
    
    	var dstAbs string
    	if filepath.IsAbs(dst) {
    		dstAbs = dst
    	} else {
    		// Symlink targets are relative to the directory containing the link.
    		dstAbs = filepath.Join(filepath.Dir(linkPath), dst)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 17:35:49 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  4. internal/event/target/webhook.go

    // Validate WebhookArgs fields
    func (w WebhookArgs) Validate() error {
    	if !w.Enable {
    		return nil
    	}
    	if w.Endpoint.IsEmpty() {
    		return errors.New("endpoint empty")
    	}
    	if w.QueueDir != "" {
    		if !filepath.IsAbs(w.QueueDir) {
    			return errors.New("queueDir path should be absolute")
    		}
    	}
    	if w.ClientCert != "" && w.ClientKey == "" || w.ClientCert == "" && w.ClientKey != "" {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  5. src/go/internal/gcimporter/gcimporter.go

    		}
    		id = bp.ImportPath
    
    	case build.IsLocalImport(path):
    		// "./x" -> "/this/directory/x.ext", "/this/directory/x"
    		noext = filepath.Join(srcDir, path)
    		id = noext
    
    	case filepath.IsAbs(path):
    		// for completeness only - go/build.Import
    		// does not support absolute imports
    		// "/x" -> "/x.ext", "/x"
    		noext = path
    		id = path
    	}
    
    	if false { // for debugging
    		if path != id {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  6. src/go/build/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 os.Stat.
    func (ctxt *Context) isDir(path string) bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 62.3K bytes
    - Viewed (0)
  7. src/cmd/go/internal/toolchain/switch.go

    func pathToolchains(ctx context.Context) ([]string, error) {
    	have := make(map[string]bool)
    	var list []string
    	for _, dir := range pathDirs() {
    		if dir == "" || !filepath.IsAbs(dir) {
    			// Refuse to use local directories in $PATH (hard-coding exec.ErrDot).
    			continue
    		}
    		entries, err := os.ReadDir(dir)
    		if err != nil {
    			continue
    		}
    		for _, de := range entries {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 18:15:22 UTC 2024
    - 7K bytes
    - Viewed (0)
  8. internal/lock/lock_windows.go

    	// \\?\UNC\server\share paths because the rules for doing so
    	// are less well-specified.
    	if len(path) >= 2 && path[:2] == `\\` {
    		// Don't canonicalize UNC paths.
    		return path
    	}
    	if !filepath.IsAbs(path) {
    		// Relative path
    		return path
    	}
    
    	const prefix = `\\?`
    
    	pathbuf := make([]byte, len(prefix)+len(path)+len(`\`))
    	copy(pathbuf, prefix)
    	n := len(path)
    	r, w := 0, len(prefix)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Oct 18 18:08:15 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiextensions-apiserver/pkg/cmd/server/testing/testserver.go

    		pkgPath = filepath.Join(testSrcdir, testWorkspace, pkgPath)
    	}
    
    	// If the path is still not absolute, something other than bazel compiled
    	// with -trimpath.
    	if !filepath.IsAbs(pkgPath) {
    		return "", fmt.Errorf("can't construct an absolute path from %q", pkgPath)
    	}
    
    	t.Logf("Resolved testserver package path to: %q", pkgPath)
    
    	return pkgPath, nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 18:59:21 UTC 2024
    - 9K bytes
    - Viewed (1)
  10. 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)
Back to top