Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 19 of 19 for PathError (0.15 sec)

  1. cmd/update.go

    				StatusCode: http.StatusInternalServerError,
    			}
    		}
    		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),
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 18.7K bytes
    - Viewed (0)
  2. internal/lock/lock_windows.go

    		f.Close()
    		return nil, err
    	}
    
    	st, err := os.Stat(path)
    	if err != nil {
    		f.Close()
    		return nil, err
    	}
    
    	if st.IsDir() {
    		f.Close()
    		return nil, &os.PathError{
    			Op:   "open",
    			Path: path,
    			Err:  syscall.EISDIR,
    		}
    	}
    
    	return &LockedFile{File: f}, nil
    }
    
    // TryLockedOpenFile - tries a new write lock, functionality
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Oct 18 18:08:15 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  3. src/cmd/api/main_test.go

    // If there are many of these, we could do a more general solution,
    // but for now the replacer is fine.
    var aliasReplacer = strings.NewReplacer(
    	"os.FileInfo", "fs.FileInfo",
    	"os.FileMode", "fs.FileMode",
    	"os.PathError", "fs.PathError",
    )
    
    func fileFeatures(filename string, needApproval bool) []string {
    	bs, err := os.ReadFile(filename)
    	if err != nil {
    		log.Fatal(err)
    	}
    	s := string(bs)
    
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Sep 04 18:16:59 UTC 2024
    - 31.4K bytes
    - Viewed (0)
  4. cmd/xl-storage_test.go

    					} else {
    						var resultErrno, expectErrno uintptr
    						if pathErr, ok := err.(*os.PathError); ok {
    							if errno, pok := pathErr.Err.(syscall.Errno); pok {
    								resultErrno = uintptr(errno)
    							}
    						}
    						if pathErr, ok := testCase.expectedErr.(*os.PathError); ok {
    							if errno, pok := pathErr.Err.(syscall.Errno); pok {
    								expectErrno = uintptr(errno)
    							}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 14 17:11:51 UTC 2024
    - 66.7K bytes
    - Viewed (0)
  5. api/go1.10.txt

    pkg os, func IsTimeout(error) bool
    pkg os, method (*File) SetDeadline(time.Time) error
    pkg os, method (*File) SetReadDeadline(time.Time) error
    pkg os, method (*File) SetWriteDeadline(time.Time) error
    pkg os, method (*PathError) Timeout() bool
    pkg os, method (*SyscallError) Timeout() bool
    pkg os, var ErrNoDeadline error
    pkg strings, method (*Builder) Grow(int)
    pkg strings, method (*Builder) Len() int
    pkg strings, method (*Builder) Reset()
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Tue Feb 06 05:00:01 UTC 2018
    - 30.1K bytes
    - Viewed (0)
  6. api/go1.16.txt

    pkg io/fs, type GlobFS interface, Glob(string) ([]string, error)
    pkg io/fs, type GlobFS interface, Open(string) (File, error)
    pkg io/fs, type PathError struct
    pkg io/fs, type PathError struct, Err error
    pkg io/fs, type PathError struct, Op string
    pkg io/fs, type PathError struct, Path string
    pkg io/fs, type ReadDirFS interface { Open, ReadDir }
    pkg io/fs, type ReadDirFS interface, Open(string) (File, error)
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Dec 02 16:30:41 UTC 2022
    - 479.2K bytes
    - Viewed (0)
  7. cmd/xl-storage.go

    	if err != nil {
    		return nil, time.Time{}, err
    	}
    	defer f.Close()
    	stat, err := f.Stat()
    	if err != nil {
    		return nil, time.Time{}, err
    	}
    	if stat.IsDir() {
    		return nil, time.Time{}, &os.PathError{
    			Op:   "open",
    			Path: itemPath,
    			Err:  syscall.EISDIR,
    		}
    	}
    	buf, err := readXLMetaNoData(f, stat.Size())
    	if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 26 09:58:27 UTC 2024
    - 91.3K bytes
    - Viewed (0)
  8. api/go1.txt

    pkg os, type LinkError struct, New string
    pkg os, type LinkError struct, Old string
    pkg os, type LinkError struct, Op string
    pkg os, type PathError struct
    pkg os, type PathError struct, Err error
    pkg os, type PathError struct, Op string
    pkg os, type PathError struct, Path string
    pkg os, type ProcAttr struct
    pkg os, type ProcAttr struct, Dir string
    pkg os, type ProcAttr struct, Env []string
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Aug 14 18:58:28 UTC 2013
    - 1.7M bytes
    - Viewed (0)
  9. api/go1.13.txt

    pkg os/exec, method (*Cmd) String() string
    pkg os/exec, method (*Error) Unwrap() error
    pkg os, func UserConfigDir() (string, error)
    pkg os, method (*LinkError) Unwrap() error
    pkg os, method (*PathError) Unwrap() error
    pkg os, method (*SyscallError) Unwrap() error
    pkg os (netbsd-arm64-cgo), const DevNull = "/dev/null"
    pkg os (netbsd-arm64-cgo), const O_APPEND = 8
    pkg os (netbsd-arm64-cgo), const O_CREATE = 512
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Aug 08 18:44:16 UTC 2019
    - 452.6K bytes
    - Viewed (0)
Back to top