- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 87 for errNotExist (0.27 sec)
-
src/os/error_test.go
{&fs.PathError{Err: fs.ErrExist}, true, false}, {&fs.PathError{Err: fs.ErrNotExist}, false, true}, {&fs.PathError{Err: fs.ErrClosed}, false, false}, {&os.LinkError{Err: fs.ErrInvalid}, false, false}, {&os.LinkError{Err: fs.ErrPermission}, false, false}, {&os.LinkError{Err: fs.ErrExist}, true, false}, {&os.LinkError{Err: fs.ErrNotExist}, false, true}, {&os.LinkError{Err: fs.ErrClosed}, false, false},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 19 00:41:52 UTC 2023 - 4.9K bytes - Viewed (0) -
src/cmd/go/internal/modcmd/verify.go
if zipErr != nil && errors.Is(zipErr, fs.ErrNotExist) && dirErr != nil && errors.Is(dirErr, fs.ErrNotExist) { // Nothing downloaded yet. Nothing to verify. return nil } errs = append(errs, fmt.Errorf("%s %s: missing ziphash: %v", mod.Path, mod.Version, err)) return errs } h := string(bytes.TrimSpace(data)) if zipErr != nil && errors.Is(zipErr, fs.ErrNotExist) { // ok } else {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 21 16:56:35 UTC 2024 - 3.6K bytes - Viewed (0) -
src/os/error.go
// report that a file or directory does not exist. It is satisfied by // [ErrNotExist] as well as some syscall errors. // // This function predates [errors.Is]. It only supports errors returned by // the os package. New code should use errors.Is(err, fs.ErrNotExist). func IsNotExist(err error) bool { return underlyingErrorIs(err, ErrNotExist) } // IsPermission returns a boolean indicating whether the error is known to
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 21:33:12 UTC 2024 - 4.8K bytes - Viewed (0) -
src/io/fs/fs.go
ErrNotExist = errNotExist() // "file does not exist" ErrClosed = errClosed() // "file already closed" ) func errInvalid() error { return oserror.ErrInvalid } func errPermission() error { return oserror.ErrPermission } func errExist() error { return oserror.ErrExist } func errNotExist() error { return oserror.ErrNotExist }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jan 15 21:21:41 UTC 2024 - 9.4K bytes - Viewed (0) -
src/cmd/go/internal/web/file_test.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Dec 09 19:12:23 UTC 2020 - 1.1K bytes - Viewed (0) -
pkg/util/oom/oom_linux.go
return oomAdjuster } func getPids(cgroupName string) ([]int, error) { return cmutil.GetPids(filepath.Join("/", cgroupName)) } // Writes 'value' to /proc/<pid>/oom_score_adj. PID = 0 means self // Returns os.ErrNotExist if the `pid` does not exist. func applyOOMScoreAdj(pid int, oomScoreAdj int) error { if pid < 0 { return fmt.Errorf("invalid PID %d specified for oom_score_adj", pid) } var pidStr string if pid == 0 {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Oct 20 07:13:28 UTC 2022 - 4K bytes - Viewed (0) -
src/internal/syscall/windows/registry/value.go
QWORD = 11 ) var ( // 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) -
test/fixedbugs/issue15604.go
// license that can be found in the LICENSE file. package bug import "os" func f(err error) { var ok bool if err, ok = err.(*os.PathError); ok { if err == os.ErrNotExist { } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 10 16:30:34 UTC 2016 - 309 bytes - Viewed (0) -
src/os/executable_path.go
// executable file // errWd will be checked later, if we need to use initWd var initWd, errWd = Getwd() func executable() (string, error) { var exePath string if len(Args) == 0 || Args[0] == "" { return "", ErrNotExist } if IsPathSeparator(Args[0][0]) { // Args[0] is an absolute path, so it is the executable. // Note that we only need to worry about Unix paths here. exePath = Args[0] } else {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 28 18:17:57 UTC 2021 - 2.3K bytes - Viewed (0) -
src/io/fs/stat_test.go
// license that can be found in the LICENSE file. package fs_test import ( "fmt" . "io/fs" "testing" ) type statOnly struct{ StatFS } func (statOnly) Open(name string) (File, error) { return nil, ErrNotExist } func TestStat(t *testing.T) { check := func(desc string, info FileInfo, err error) { t.Helper() if err != nil || info == nil || info.Mode() != 0456 { infoStr := "<nil>" if info != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 20 17:53:02 UTC 2020 - 949 bytes - Viewed (0)