Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for ERROR_FILE_NOT_FOUND (0.27 sec)

  1. src/os/error_windows_test.go

    	isExistTests = append(isExistTests,
    		isExistTest{err: &fs.PathError{Err: syscall.ERROR_FILE_NOT_FOUND}, is: false, isnot: true},
    		isExistTest{err: &os.LinkError{Err: syscall.ERROR_FILE_NOT_FOUND}, is: false, isnot: true},
    		isExistTest{err: &os.SyscallError{Err: syscall.ERROR_FILE_NOT_FOUND}, is: false, isnot: true},
    
    		isExistTest{err: &fs.PathError{Err: _ERROR_BAD_NETPATH}, is: false, isnot: true},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 1.7K bytes
    - Viewed (0)
  2. src/cmd/go/internal/robustio/robustio_windows.go

    	"internal/syscall/windows"
    	"syscall"
    )
    
    const errFileNotFound = syscall.ERROR_FILE_NOT_FOUND
    
    // isEphemeralError returns true if err may be resolved by waiting.
    func isEphemeralError(err error) bool {
    	var errno syscall.Errno
    	if errors.As(err, &errno) {
    		switch errno {
    		case syscall.ERROR_ACCESS_DENIED,
    			syscall.ERROR_FILE_NOT_FOUND,
    			windows.ERROR_SHARING_VIOLATION:
    			return true
    		}
    	}
    	return false
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 26 15:28:04 UTC 2019
    - 615 bytes
    - Viewed (0)
  3. src/cmd/go/internal/robustio/robustio.go

    // IsEphemeralError reports whether err is one of the errors that the functions
    // in this package attempt to mitigate.
    //
    // Errors considered ephemeral include:
    //   - syscall.ERROR_ACCESS_DENIED
    //   - syscall.ERROR_FILE_NOT_FOUND
    //   - internal/syscall/windows.ERROR_SHARING_VIOLATION
    //
    // This set may be expanded in the future; programs must not rely on the
    // non-ephemerality of any given error.
    func IsEphemeralError(err error) bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 1.9K bytes
    - Viewed (0)
  4. src/internal/poll/fd_windows_test.go

    				nil,
    				syscall.OPEN_EXISTING,
    				syscall.FILE_ATTRIBUTE_NORMAL|syscall.FILE_FLAG_OVERLAPPED,
    				0)
    			if err != nil {
    				if errno, ok := err.(syscall.Errno); ok {
    					switch errno {
    					case syscall.ERROR_FILE_NOT_FOUND,
    						syscall.ERROR_ACCESS_DENIED:
    						t.Log("Skipping: ", err)
    						return
    					}
    				}
    				t.Fatal(err)
    			}
    			f := os.NewFile(uintptr(h), name)
    			defer f.Close()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 14 08:33:36 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  5. src/os/dir_windows.go

    					// Optimization: we can return the buffer to the pool, there is nothing else to read.
    					dirBufPool.Put(d.buf)
    					d.buf = nil
    					break
    				}
    				if err == syscall.ERROR_FILE_NOT_FOUND &&
    					(d.class == windows.FileIdBothDirectoryRestartInfo || d.class == windows.FileFullDirectoryRestartInfo) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 20:52:06 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  6. cmd/os_windows.go

    	return entries, nil
    }
    
    func globalSync() {
    	// no-op on windows
    }
    
    func syscallErrToFileErr(dirPath string, err error) error {
    	switch err {
    	case nil:
    		return nil
    	case syscall.ERROR_FILE_NOT_FOUND:
    		return errFileNotFound
    	case syscall.ERROR_ACCESS_DENIED:
    		return errFileAccessDenied
    	default:
    		// Fails on file not found and when not a directory.
    		return osErrToFileErr(&os.PathError{
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Oct 18 18:08:15 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  7. src/internal/syscall/windows/registry/value.go

    	// ErrShortBuffer is returned when the buffer was too short for the operation.
    	ErrShortBuffer = syscall.ERROR_MORE_DATA
    
    	// ErrNotExist is returned when a registry key or value does not exist.
    	ErrNotExist = syscall.ERROR_FILE_NOT_FOUND
    
    	// ErrUnexpectedType is returned by Get*Value when the value's type was unexpected.
    	ErrUnexpectedType = errors.New("unexpected key value type")
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 20:01:34 UTC 2023
    - 11K bytes
    - Viewed (0)
  8. src/syscall/zerrors_windows.go

    // mkerrors_windows.sh -m32
    // Code generated by the command above; DO NOT EDIT.
    
    package syscall
    
    // Go names for Windows errors.
    const (
    	ENOENT  Errno = ERROR_FILE_NOT_FOUND
    	ENOTDIR Errno = ERROR_PATH_NOT_FOUND
    )
    
    // Windows reserves errors >= 1<<29 for application use.
    const APPLICATION_ERROR = 1 << 29
    
    // Invented values to support what package os and others expects.
    const (
    	E2BIG Errno = APPLICATION_ERROR + iota
    	EACCES
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 14 13:21:46 UTC 2018
    - 10K bytes
    - Viewed (0)
  9. internal/lock/lock_windows.go

    // are not octet combinations. Providing access to NT
    // acls is out of scope here.
    func Open(path string, flag int, perm os.FileMode) (*os.File, error) {
    	if path == "" {
    		return nil, syscall.ERROR_FILE_NOT_FOUND
    	}
    
    	pathp, err := syscall.UTF16PtrFromString(fixLongPath(path))
    	if err != nil {
    		return nil, err
    	}
    
    	var access uint32
    	switch flag {
    	case syscall.O_RDONLY:
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Oct 18 18:08:15 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  10. pkg/volume/util/subpath/subpath_windows.go

    // lockPath locks a directory or symlink, return handle, exec "syscall.CloseHandle(handle)" to unlock the path
    func lockPath(path string) (uintptr, error) {
    	if len(path) == 0 {
    		return uintptr(syscall.InvalidHandle), syscall.ERROR_FILE_NOT_FOUND
    	}
    	pathp, err := syscall.UTF16PtrFromString(path)
    	if err != nil {
    		return uintptr(syscall.InvalidHandle), err
    	}
    	access := uint32(syscall.GENERIC_READ)
    	sharemode := uint32(syscall.FILE_SHARE_READ)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 23 12:57:11 UTC 2023
    - 12.5K bytes
    - Viewed (0)
Back to top