- Sort Score
- Result 10 results
- Languages All
Results 21 - 28 of 28 for ErrInvalid (0.19 sec)
-
cni/pkg/nodeagent/fakes_test.go
// and the Err field describing the problem. // // Open should reject attempts to open names that do not satisfy // ValidPath(name), returning a *PathError with Err set to // ErrInvalid or ErrNotExist. func (ffs *fakeFsWithFakeFds) Open(name string) (fs.File, error) { f, err := ffs.ReadDirFS.Open(name) if err != nil { return nil, err } return wrapFile(f), nil }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Apr 12 21:47:31 UTC 2024 - 3.9K bytes - Viewed (0) -
src/os/stat_windows.go
"unsafe" ) // Stat returns the [FileInfo] structure describing file. // If there is an error, it will be of type [*PathError]. func (file *File) Stat() (FileInfo, error) { if file == nil { return nil, ErrInvalid } return statHandle(file.name, file.pfd.Sysfd) } // stat implements both Stat and Lstat of a file. func stat(funcname, name string, followSurrogates bool) (FileInfo, error) { if len(name) == 0 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 18:44:48 UTC 2024 - 5.2K bytes - Viewed (0) -
internal/s3select/select.go
gzip.ErrHeader, gzip.ErrChecksum, s2.ErrCorrupt, s2.ErrUnsupported, s2.ErrCRC, zstd.ErrBlockTooSmall, zstd.ErrMagicMismatch, zstd.ErrWindowSizeExceeded, zstd.ErrUnknownDictionary, zstd.ErrWindowSizeTooSmall, lz4.ErrInvalid, lz4.ErrBlockDependency, } for _, e := range errs { if errors.Is(err, e) { return errInvalidCompression(err, s3Select.Input.CompressionType) } } return err } return nil
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 21K bytes - Viewed (0) -
src/os/os_test.go
} // Test that all File methods give ErrInvalid if the receiver is nil. func TestNilFileMethods(t *testing.T) { t.Parallel() for _, tt := range nilFileMethodTests { var file *File got := tt.f(file) if got != ErrInvalid { t.Errorf("%v should fail when f is nil; got %v", tt.name, got) } } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 83.1K bytes - Viewed (0) -
src/os/file.go
func (dir dirFS) join(name string) (string, error) { if dir == "" { return "", errors.New("os: DirFS with empty root") } name, err := filepathlite.Localize(name) if err != nil { return "", ErrInvalid } if IsPathSeparator(dir[len(dir)-1]) { return string(dir) + name, nil } return string(dir) + string(PathSeparator) + name, nil } // ReadFile reads the named file and returns the contents.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 26 23:07:37 UTC 2024 - 25.4K bytes - Viewed (0) -
src/net/http/fs_test.go
func (f *fakeFile) Close() error { return nil } func (f *fakeFile) Stat() (fs.FileInfo, error) { return f.fi, nil } func (f *fakeFile) Readdir(count int) ([]fs.FileInfo, error) { if !f.fi.dir { return nil, fs.ErrInvalid } var fis []fs.FileInfo limit := f.entpos + count if count <= 0 || limit > len(f.fi.ents) { limit = len(f.fi.ents) } for ; f.entpos < limit; f.entpos++ {
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/vendor/golang.org/x/tools/internal/stdlib/manifest.go
{"(FileMode).Perm", Method, 16}, {"(FileMode).String", Method, 16}, {"(FileMode).Type", Method, 16}, {"DirEntry", Type, 16}, {"ErrClosed", Var, 16}, {"ErrExist", Var, 16}, {"ErrInvalid", Var, 16}, {"ErrNotExist", Var, 16}, {"ErrPermission", Var, 16}, {"FS", Type, 16}, {"File", Type, 16}, {"FileInfo", Type, 16}, {"FileInfoToDirEntry", Func, 17}, {"FileMode", Type, 16},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 534.2K bytes - Viewed (0) -
api/go1.16.txt
pkg io/fs, type SubFS interface, Sub(string) (FS, error) pkg io/fs, type WalkDirFunc func(string, DirEntry, error) error pkg io/fs, var ErrClosed error pkg io/fs, var ErrExist error pkg io/fs, var ErrInvalid error pkg io/fs, var ErrNotExist error pkg io/fs, var ErrPermission error pkg io/fs, var SkipDir error pkg log, func Default() *Logger pkg net, var ErrClosed error pkg net/http, func FS(fs.FS) FileSystem
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Dec 02 16:30:41 UTC 2022 - 479.2K bytes - Viewed (0)