Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 11 for PathError (0.06 seconds)

  1. cmd/xl-storage-errors.go

    func isSysErrPathNotFound(err error) bool {
    	if runtime.GOOS != globalWindowsOSName {
    		var pathErr *os.PathError
    		if errors.As(err, &pathErr) {
    			return pathErr.Err == syscall.ENOENT
    		}
    		return false
    	}
    	var pathErr *os.PathError
    	if errors.As(err, &pathErr) {
    		var errno syscall.Errno
    		if errors.As(pathErr.Err, &errno) {
    			// ERROR_PATH_NOT_FOUND
    			return errno == 0x03
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Mon Mar 06 16:56:29 GMT 2023
    - 3.8K bytes
    - Click Count (0)
  2. cmd/os_windows.go

    	for ; ; err = syscall.FindNextFile(handle, data) {
    		if err != nil {
    			if err == syscall.ERROR_NO_MORE_FILES {
    				break
    			}
    			if isSysErrPathNotFound(err) {
    				return nil
    			}
    			err = osErrToFileErr(&os.PathError{
    				Op:   "FindNextFile",
    				Path: dirPath,
    				Err:  err,
    			})
    			if err == errFileNotFound {
    				return nil
    			}
    			return err
    		}
    		name := syscall.UTF16ToString(data.FileName[0:])
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Tue Feb 18 16:25:55 GMT 2025
    - 5K bytes
    - Click Count (0)
  3. cmd/os_unix.go

    	"strings"
    	"syscall"
    	"unsafe"
    
    	"github.com/minio/minio/internal/bpool"
    	"golang.org/x/sys/unix"
    )
    
    func access(name string) error {
    	if err := unix.Access(name, unix.F_OK); err != nil {
    		return &os.PathError{Op: "lstat", Path: name, Err: err}
    	}
    	return nil
    }
    
    // openFileWithFD return 'fd' based file descriptor
    func openFileWithFD(name string, flag int, perm os.FileMode) (fd int, err error) {
    	switch flag & writeMode {
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 9.3K bytes
    - Click Count (0)
  4. api/except.txt

    pkg os, type FileInfo interface, Size() int64
    pkg os, type FileInfo interface, Sys() interface{}
    pkg os, type FileMode uint32
    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 syscall (darwin-amd64), const ImplementsGetwd = false
    pkg syscall (darwin-amd64), func Fchflags(string, int) error
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Sun Jun 16 23:08:08 GMT 2024
    - 34.8K bytes
    - Click Count (0)
  5. src/archive/zip/reader.go

    // leading / or ../ elements.
    func (r *Reader) Open(name string) (fs.File, error) {
    	r.initFileList()
    
    	if !fs.ValidPath(name) {
    		return nil, &fs.PathError{Op: "open", Path: name, Err: fs.ErrInvalid}
    	}
    	e := r.openLookup(name)
    	if e == nil {
    		return nil, &fs.PathError{Op: "open", Path: name, Err: fs.ErrNotExist}
    	}
    	if e.isDir {
    		return &openDir{e, r.openReadDir(name), 0}, nil
    	}
    	rc, err := e.file.Open()
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Tue Mar 11 22:19:38 GMT 2025
    - 28.4K bytes
    - Click Count (0)
  6. cmd/storage-errors.go

    // Collection of basic errors.
    var baseErrs = []error{
    	errDiskNotFound,
    	errFaultyDisk,
    	errFaultyRemoteDisk,
    }
    
    var baseIgnoredErrs = baseErrs
    
    // Is a one place function which converts all os.PathError
    // into a more FS object layer friendly form, converts
    // known errors into their typed form for top level
    // interpretation.
    func osErrToFileErr(err error) error {
    	if err == nil {
    		return nil
    	}
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 6.4K bytes
    - Click Count (0)
  7. 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),
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 18.9K bytes
    - Click Count (0)
  8. 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
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 7.9K bytes
    - Click Count (0)
  9. 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)
    
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Thu Feb 20 03:25:33 GMT 2025
    - 31.4K bytes
    - Click Count (0)
  10. 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)
    							}
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 66K bytes
    - Click Count (0)
Back to Top