Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 114 for pathend (0.15 sec)

  1. src/debug/gosym/symtab.go

    	// that was removed, so pathend will apply correctly to name and s.Name.
    	pathend := strings.LastIndex(name, "/")
    	if pathend < 0 {
    		pathend = 0
    	}
    	// Find the first dot after pathend (or from the beginning, if there was
    	// no slash in name).
    	l := strings.Index(name[pathend:], ".")
    	// Find the last dot after pathend (or the beginning).
    	r := strings.LastIndex(name[pathend:], ".")
    	if l == -1 || r == -1 || l == r {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 19:33:30 UTC 2023
    - 17.9K bytes
    - Viewed (0)
  2. src/cmd/go/internal/script/cmds.go

    	}
    
    	var pathExt []string
    	var searchExt bool
    	var isExecutable func(os.FileInfo) bool
    	if runtime.GOOS == "windows" {
    		// Use the test process's PathExt instead of the script's.
    		// If PathExt is set in the command's environment, cmd.Start fails with
    		// "parameter is invalid". Not sure why.
    		// If the command already has an extension in PathExt (like "cmd.exe")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 28.5K bytes
    - Viewed (0)
  3. cmd/kubeadm/app/util/patches/patches_test.go

    			},
    			expectedData: []byte(`{"baz":"qux","foo":"patched"}`),
    			files: []*file{
    				{
    					name: "kube-apiserver+merge.yaml",
    					data: "foo: patched",
    				},
    				{
    					name: "kube-apiserver+json.json",
    					data: `[{"op": "replace", "path": "/foo", "value": "zzz"}]`,
    				},
    			},
    		},
    		{
    			name: "valid: kube-apiserver target is patched with json patch",
    			patchTarget: &PatchTarget{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 09 14:24:11 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  4. src/os/exec/lp_windows_test.go

    		PATHEXT:   `.COM;.EXE;.BAT`,
    		files:     []string{`p1\a.bat`, `p2\a.exe`},
    		searchFor: `a`,
    		want:      `p1\a.bat`,
    	},
    	{
    		name:      "first PATHEXT entry",
    		PATHEXT:   `.COM;.EXE;.BAT`,
    		files:     []string{`p1\a.bat`, `p1\a.exe`, `p2\a.bat`, `p2\a.exe`},
    		searchFor: `a`,
    		want:      `p1\a.exe`,
    	},
    	{
    		name:      "ignore dir with PATHEXT extension",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 13 19:38:12 UTC 2023
    - 16.3K bytes
    - Viewed (0)
  5. src/syscall/fs_wasip1.go

    	if path == "" {
    		return EINVAL
    	}
    	dirFd, pathPtr, pathLen := preparePath(path)
    	errno := path_unlink_file(dirFd, pathPtr, pathLen)
    	return errnoErr(errno)
    }
    
    func Rmdir(path string) error {
    	if path == "" {
    		return EINVAL
    	}
    	dirFd, pathPtr, pathLen := preparePath(path)
    	errno := path_remove_directory(dirFd, pathPtr, pathLen)
    	return errnoErr(errno)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 24.1K bytes
    - Viewed (0)
  6. cmd/update.go

    		opts.Verifier = v
    	}
    
    	if err = selfupdate.PrepareAndCheckBinary(reader, opts); err != nil {
    		var pathErr *os.PathError
    		if errors.As(err, &pathErr) {
    			return AdminError{
    				Code: AdminUpdateApplyFailure,
    				Message: fmt.Sprintf("Unable to update the binary at %s: %v",
    					filepath.Dir(pathErr.Path), pathErr.Err),
    				StatusCode: http.StatusForbidden,
    			}
    		}
    		return AdminError{
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 18.7K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apimachinery/pkg/runtime/converter.go

    	}
    	dv.Set(reflect.MakeSlice(dt, sv.Len(), sv.Cap()))
    
    	pathLen := len(ctx.parentPath)
    	defer func() {
    		ctx.parentPath = ctx.parentPath[:pathLen]
    	}()
    	for i := 0; i < sv.Len(); i++ {
    		ctx.pushIndex(i)
    		if err := fromUnstructured(sv.Index(i), dv.Index(i), ctx); err != nil {
    			return err
    		}
    		ctx.parentPath = ctx.parentPath[:pathLen]
    	}
    	return nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 11 16:02:13 UTC 2023
    - 24.9K bytes
    - Viewed (0)
  8. pkg/kubelet/kubelet_getters.go

    	volumes := []string{}
    	podVolDir := kl.getPodVolumesDir(podUID)
    
    	if pathExists, pathErr := mount.PathExists(podVolDir); pathErr != nil {
    		return volumes, fmt.Errorf("error checking if path %q exists: %v", podVolDir, pathErr)
    	} else if !pathExists {
    		klog.V(6).InfoS("Path does not exist", "path", podVolDir)
    		return volumes, nil
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 09 00:48:07 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  9. pilot/pkg/networking/core/cluster.go

    			if patched := cp.patch(nil, defaultCluster.build()); patched != nil {
    				resources = append(resources, patched)
    				if features.EnableCDSCaching {
    					cb.cache.Add(&clusterKey, cb.req, patched)
    				}
    			}
    			for _, ss := range subsetClusters {
    				if patched := cp.patch(nil, ss); patched != nil {
    					resources = append(resources, patched)
    					if features.EnableCDSCaching {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 33K bytes
    - Viewed (0)
  10. pkg/volume/fc/fc_util.go

    func (util *fcUtil) DetachBlockFCDisk(c fcDiskUnmapper, mapPath, devicePath string) error {
    	// Check if devicePath is valid
    	if len(devicePath) != 0 {
    		if pathExists, pathErr := checkPathExists(devicePath); !pathExists || pathErr != nil {
    			return pathErr
    		}
    	} else {
    		// TODO: FC plugin can't obtain the devicePath from kubelet because devicePath
    		// in volume object isn't updated when volume is attached to kubelet node.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 16 11:12:06 UTC 2022
    - 12.8K bytes
    - Viewed (0)
Back to top