We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8c2048 commit a27d9d8Copy full SHA for a27d9d8
internal/fs/tarfs/tarfs.go
@@ -108,11 +108,11 @@ func (tfs *TarFS) Stat(name string) (fs.FileInfo, error) {
108
// getEntry returns the named entry.
109
func (tfs *TarFS) getEntry(name string) (*entry, error) {
110
if !fs.ValidPath(name) {
111
- return nil, &fs.PathError{Path: name, Err: fs.ErrInvalid}
+ return nil, &fs.PathError{Op: "open", Path: name, Err: fs.ErrInvalid}
112
}
113
entry, ok := tfs.entries[name]
114
if !ok {
115
- return nil, &fs.PathError{Path: name, Err: fs.ErrNotExist}
+ return nil, &fs.PathError{Op: "open", Path: name, Err: fs.ErrNotExist}
116
117
if entry.header.Typeflag != tar.TypeReg {
118
// support regular files only
0 commit comments