Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 18 of 18 for PathError (0.06 sec)

  1. 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 Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Sep 28 20:59:21 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  2. 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 Dec 30 11:13:12 UTC 2025
    - Last Modified: Thu Feb 20 03:25:33 UTC 2025
    - 31.4K bytes
    - Viewed (0)
  3. 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 Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 66K bytes
    - Viewed (0)
  4. 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 Dec 30 11:13:12 UTC 2025
    - Last Modified: Tue Feb 06 05:00:01 UTC 2018
    - 30.1K bytes
    - Viewed (0)
  5. 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 Dec 30 11:13:12 UTC 2025
    - Last Modified: Fri Dec 02 16:30:41 UTC 2022
    - 479.2K bytes
    - Viewed (0)
  6. 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 Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Sep 28 20:59:21 UTC 2025
    - 91.7K bytes
    - Viewed (0)
  7. 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 Dec 30 11:13:12 UTC 2025
    - Last Modified: Wed Aug 14 18:58:28 UTC 2013
    - 1.7M bytes
    - Viewed (0)
  8. 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 Dec 30 11:13:12 UTC 2025
    - Last Modified: Thu Aug 08 18:44:16 UTC 2019
    - 452.6K bytes
    - Viewed (0)
Back to top