Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 198 for pathend (0.93 sec)

  1. pkg/volume/flexvolume/detacher.go

    func (d *flexVolumeDetacher) UnmountDevice(deviceMountPath string) error {
    
    	pathExists, pathErr := mount.PathExists(deviceMountPath)
    	if !pathExists {
    		klog.Warningf("Warning: Unmount skipped because path does not exist: %v", deviceMountPath)
    		return nil
    	}
    	if pathErr != nil && !mount.IsCorruptedMnt(pathErr) {
    		return fmt.Errorf("error checking path: %w", pathErr)
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 14 13:58:56 UTC 2021
    - 2.5K bytes
    - Viewed (0)
  2. 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)
  3. pkg/volume/flexvolume/unmounter.go

    	path := f.GetPath()
    	return f.TearDownAt(path)
    }
    
    func (f *flexVolumeUnmounter) TearDownAt(dir string) error {
    	pathExists, pathErr := mount.PathExists(dir)
    	if pathErr != nil {
    		// only log warning here since plugins should anyways have to deal with errors
    		klog.Warningf("Error checking path: %v", pathErr)
    	} else {
    		if !pathExists {
    			klog.Warningf("Warning: Unmount skipped because path does not exist: %v", dir)
    			return nil
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 14 13:58:56 UTC 2021
    - 1.9K bytes
    - Viewed (0)
  4. src/os/path_test.go

    	const dir = "/_go_os_test/dir"
    	err := MkdirAll(dir, 0777)
    	if err != nil {
    		pathErr, ok := err.(*PathError)
    		// common for users not to be able to write to /
    		if ok && (pathErr.Err == syscall.EACCES || isReadonlyError(pathErr.Err)) {
    			t.Skipf("could not create %v: %v", dir, err)
    		}
    		t.Fatalf(`MkdirAll "/_go_os_test/dir": %v, %s`, err, pathErr.Err)
    	}
    	RemoveAll("/_go_os_test")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 19 20:45:37 UTC 2023
    - 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. src/os/exec/lp_windows.go

    func LookPath(file string) (string, error) {
    	return lookPath(file, pathExt())
    }
    
    // lookExtensions finds windows executable by its dir and path.
    // It uses LookPath to try appropriate extensions.
    // lookExtensions does not search PATH, instead it converts `prog` into `.\prog`.
    //
    // If the path already has an extension found in PATHEXT,
    // lookExtensions returns it directly without searching
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:33:12 UTC 2024
    - 6K bytes
    - Viewed (0)
  7. staging/src/k8s.io/cli-runtime/pkg/genericclioptions/name_flags_test.go

    			outputFormat:   "name",
    			operation:      "patched",
    			expectedOutput: "pod/foo",
    		},
    		{
    			name:          "operation and no valid \"name\" output does not match a printer",
    			operation:     "patched",
    			outputFormat:  "invalid",
    			dryRun:        true,
    			expectNoMatch: true,
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 21 15:08:30 UTC 2018
    - 3.1K bytes
    - Viewed (0)
  8. .typos.toml

    "encrypter" = "encrypter"
    "kms" = "kms"
    "requestor" = "requestor"
    
    [default.extend-identifiers]
    "HashiCorp" = "HashiCorp"
    
    [type.go.extend-identifiers]
    "bui" = "bui"
    "dm2nd" = "dm2nd"
    "ot" = "ot"
    "ParseND" = "ParseND"
    "ParseNDStream" = "ParseNDStream"
    "pn" = "pn"
    "TestGetPartialObjectMisAligned" = "TestGetPartialObjectMisAligned"
    "thr" = "thr"
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Apr 18 15:15:02 UTC 2024
    - 854 bytes
    - Viewed (0)
  9. 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)
  10. src/cmd/go/internal/version/version.go

    			}
    			return
    		}
    		info = i
    	}
    
    	bi, err := buildinfo.ReadFile(file)
    	if err != nil {
    		if mustPrint {
    			if pathErr := (*os.PathError)(nil); errors.As(err, &pathErr) && filepath.Clean(pathErr.Path) == filepath.Clean(file) {
    				fmt.Fprintf(os.Stderr, "%v\n", file)
    			} else {
    
    				// Skip errors for non-Go binaries.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 24 19:27:00 UTC 2023
    - 4.8K bytes
    - Viewed (0)
Back to top