io/fs.PathError.Op (field)
63 uses
io/fs (current package)
fs.go#L252: Op string
fs.go#L257: func (e *PathError) Error() string { return e.Op + " " + e.Path + ": " + e.Err.Error() }
readdir.go#L42: return nil, &PathError{Op: "readdir", Path: name, Err: errors.New("not implemented")}
sub.go#L36: return nil, &PathError{Op: "sub", Path: dir, Err: ErrInvalid}
sub.go#L55: return "", &PathError{Op: op, Path: name, Err: ErrInvalid}
embed
embed.go#L296: return nil, &fs.PathError{Op: "open", Path: name, Err: fs.ErrNotExist}
embed.go#L312: return nil, &fs.PathError{Op: "read", Path: name, Err: errors.New("not a directory")}
embed.go#L329: return nil, &fs.PathError{Op: "read", Path: name, Err: errors.New("is a directory")}
embed.go#L353: return 0, &fs.PathError{Op: "read", Path: f.f.name, Err: fs.ErrInvalid}
embed.go#L370: return 0, &fs.PathError{Op: "seek", Path: f.f.name, Err: fs.ErrInvalid}
embed.go#L378: return 0, &fs.PathError{Op: "read", Path: f.f.name, Err: fs.ErrInvalid}
embed.go#L398: return 0, &fs.PathError{Op: "read", Path: d.f.name, Err: errors.New("is a directory")}
os
dir.go#L171: return &PathError{Op: "CopyFS", Path: path, Err: ErrInvalid}
dir.go#L190: return &PathError{Op: "Copy", Path: newPath, Err: err}
dir_unix.go#L81: return names, dirents, infos, &PathError{Op: "readdirent", Path: f.name, Err: errno}
exec_posix.go#L33: pe.Op = "chdir"
exec_posix.go#L61: return nil, &PathError{Op: "fork/exec", Path: name, Err: e}
file.go#L138: return 0, &PathError{Op: "readat", Path: f.name, Err: errors.New("negative offset")}
file.go#L228: return 0, &PathError{Op: "writeat", Path: f.name, Err: errors.New("negative offset")}
file.go#L314: return &PathError{Op: "mkdir", Path: name, Err: e}
file.go#L344: return &PathError{Op: "chdir", Path: dir, Err: e}
file.go#L458: return &PathError{Op: op, Path: f.name, Err: err}
file.go#L714: return nil, &PathError{Op: "open", Path: name, Err: err}
file.go#L735: return nil, &PathError{Op: "readfile", Path: name, Err: err}
file.go#L753: return nil, &PathError{Op: "readdir", Path: name, Err: err}
file.go#L769: return nil, &PathError{Op: "stat", Path: name, Err: err}
file_posix.go#L82: return &PathError{Op: "chmod", Path: name, Err: e}
file_posix.go#L110: return &PathError{Op: "chown", Path: name, Err: e}
file_posix.go#L126: return &PathError{Op: "lchown", Path: name, Err: e}
file_posix.go#L191: return &PathError{Op: "chtimes", Path: name, Err: e}
file_unix.go#L283: return nil, &PathError{Op: "open", Path: name, Err: e}
file_unix.go#L313: return nil, &PathError{Op: "open", Path: name, Err: e}
file_unix.go#L337: err = &PathError{Op: "close", Path: file.name, Err: e}
file_unix.go#L368: return &PathError{Op: "truncate", Path: name, Err: e}
file_unix.go#L405: return &PathError{Op: "remove", Path: name, Err: e}
file_unix.go#L457: return "", &PathError{Op: "readlink", Path: name, Err: err}
path.go#L26: return &PathError{Op: "mkdir", Path: path, Err: syscall.ENOTDIR}
removeall_at.go#L25: return &PathError{Op: "RemoveAll", Path: path, Err: syscall.EINVAL}
removeall_at.go#L75: return &PathError{Op: "unlinkat", Path: base, Err: err}
removeall_at.go#L93: return &PathError{Op: "unlinkat", Path: base, Err: uErr}
removeall_at.go#L95: recurseErr = &PathError{Op: "openfdat", Path: base, Err: err}
removeall_at.go#L109: return &PathError{Op: "readdirnames", Path: base, Err: readErr}
removeall_at.go#L157: return &PathError{Op: "unlinkat", Path: base, Err: unlinkError}
root.go#L112: return nil, &PathError{Op: "openat", Path: name, Err: errors.New("unsupported file mode")}
root.go#L138: return &PathError{Op: "mkdirat", Path: name, Err: errors.New("unsupported file mode")}
root.go#L255: return nil, &PathError{Op: "open", Path: name, Err: ErrInvalid}
root.go#L267: return nil, &PathError{Op: "readdir", Path: name, Err: ErrInvalid}
root.go#L291: return nil, &PathError{Op: "readfile", Path: name, Err: ErrInvalid}
root.go#L304: return nil, &PathError{Op: "stat", Path: name, Err: ErrInvalid}
root_openat.go#L72: return &PathError{Op: "mkdirat", Path: name, Err: err}
root_openat.go#L82: return &PathError{Op: "removeat", Path: name, Err: err}
root_unix.go#L27: return nil, &PathError{Op: "open", Path: name, Err: err}
root_unix.go#L42: return nil, &PathError{Op: "open", Path: name, Err: errors.New("not a directory")}
root_unix.go#L72: return nil, &PathError{Op: "openat", Path: name, Err: err}
root_unix.go#L90: return nil, &PathError{Op: "openat", Path: name, Err: err}
root_unix.go#L129: return nil, &PathError{Op: "statat", Path: name, Err: err}
stat_unix.go#L35: return nil, &PathError{Op: "stat", Path: name, Err: err}
stat_unix.go#L48: return nil, &PathError{Op: "lstat", Path: name, Err: err}
tempfile.go#L42: return nil, &PathError{Op: "createtemp", Path: pattern, Err: err}
tempfile.go#L54: return nil, &PathError{Op: "createtemp", Path: prefix + "*" + suffix, Err: ErrExist}
tempfile.go#L93: return "", &PathError{Op: "mkdirtemp", Path: pattern, Err: err}
tempfile.go#L108: return "", &PathError{Op: "mkdirtemp", Path: dir + string(PathSeparator) + prefix + "*" + suffix, Err: ErrExist}
os/exec
exec_unix.go#L22: pe.Op == "write" && pe.Path == "|1" &&