- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 87 for errNotExist (0.15 sec)
-
src/net/http/fs_test.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 23:39:44 UTC 2024 - 49.9K bytes - Viewed (0) -
src/cmd/go/proxy_test.go
} } a, err := readArchive(path, vers) if err != nil { if testing.Verbose() { fmt.Fprintf(os.Stderr, "go proxy: no archive %s %s: %v\n", path, vers, err) } if errors.Is(err, fs.ErrNotExist) { http.NotFound(w, r) } else { http.Error(w, "cannot load archive", 500) } return } switch ext { case "info", "mod": want := "." + ext for _, f := range a.Files {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 03 09:56:24 UTC 2023 - 12K bytes - Viewed (0) -
src/net/dnsconfig_unix_test.go
getHostname = func() (string, error) { return "host.domain.local", nil } conf := dnsReadConfig("a-nonexistent-file") if !os.IsNotExist(conf.err) { t.Errorf("missing resolv.conf:\ngot: %v\nwant: %v", conf.err, fs.ErrNotExist) } conf.err = nil want := &dnsConfig{ servers: defaultNS, ndots: 1, timeout: 5 * time.Second, attempts: 2, search: []string{"domain.local."}, }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 03 17:41:32 UTC 2022 - 7.1K bytes - Viewed (0) -
src/net/http/fs.go
// to a possibly better non-nil error. In particular, it turns OS-specific errors // about opening files in non-directories into fs.ErrNotExist. See Issues 18984 and 49552. func mapOpenError(originalErr error, name string, sep rune, stat func(string) (fs.FileInfo, error)) error { if errors.Is(originalErr, fs.ErrNotExist) || errors.Is(originalErr, fs.ErrPermission) { return originalErr } parts := strings.Split(name, string(sep))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 09 17:06:47 UTC 2024 - 31.1K bytes - Viewed (0) -
src/syscall/syscall_unix.go
// if errno != 0 { // err = errno // } // // Errno values can be tested against error values using [errors.Is]. // For example: // // _, _, err := syscall.Syscall(...) // if errors.Is(err, fs.ErrNotExist) ... type Errno uintptr func (e Errno) Error() string { if 0 <= int(e) && int(e) < len(errors) { s := errors[e] if s != "" { return s } } return "errno " + itoa.Itoa(int(e)) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 19 16:19:26 UTC 2024 - 12.2K bytes - Viewed (0) -
src/os/exec/lp_windows.go
// like "foo.bat.exe" will resolve instead of failing. } for _, e := range exts { if f := file + e; chkStat(f) == nil { return f, nil } } if hasExt(file) { return "", fs.ErrNotExist } return "", ErrNotFound } // LookPath searches for an executable named file in the // directories named by the PATH environment variable. // LookPath also uses PATHEXT environment variable to match
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 21:33:12 UTC 2024 - 6K bytes - Viewed (0) -
src/cmd/go/internal/fsys/fsys.go
return nil, &fs.PathError{Op: opName, Path: cpath, Err: fs.ErrNotExist} } node, ok := overlay[cpath] if !ok { // The file or directory is not overlaid. return osStat(path) } switch { case node.isDeleted(): return nil, &fs.PathError{Op: opName, Path: cpath, Err: fs.ErrNotExist} case node.isDir(): return fakeDir(filepath.Base(path)), nil default:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jun 06 18:35:34 UTC 2024 - 22.7K bytes - Viewed (0) -
src/os/fifo_test.go
// but if other systems have non-pollable files, // we can add them here. const nonPollable = "/dev/net/tun" f, err := os.OpenFile(nonPollable, os.O_RDWR, 0) if err != nil { if errors.Is(err, fs.ErrNotExist) || errors.Is(err, fs.ErrPermission) || testenv.SyscallIsNotSupported(err) { t.Skipf("can't open %q: %v", nonPollable, err) } t.Fatal(err) } f.Close() // On a Linux laptop, before the problem was fixed,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 19 11:47:23 UTC 2024 - 6.1K bytes - Viewed (0) -
cmd/admin-handlers-users.go
return } // import policies first { f, err := zr.Open(pathJoin(iamAssetsDir, allPoliciesFile)) switch { case errors.Is(err, os.ErrNotExist): case err != nil: writeErrorResponseJSON(ctx, w, importErrorWithAPIErr(ctx, ErrInvalidRequest, err, allPoliciesFile, ""), r.URL) return default: defer f.Close()
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Tue May 28 17:19:04 UTC 2024 - 78.6K bytes - Viewed (0) -
src/cmd/go/internal/web/api.go
} } } return fmt.Sprintf("reading %s: %v", e.URL, eErr) } return fmt.Sprintf("reading %s: %v", e.URL, e.Status) } func (e *HTTPError) Is(target error) bool { return target == fs.ErrNotExist && (e.StatusCode == 404 || e.StatusCode == 410) } func (e *HTTPError) Unwrap() error { return e.Err } // GetBytes returns the body of the requested resource, or an error if the
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 25 13:00:34 UTC 2022 - 6.9K bytes - Viewed (0)