mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
os: fix path in MkdirTemp error message
Fixes #75012 Change-Id: I9dd3ba8987bde9db93769a1b05d13b162ba5332d Reviewed-on: https://go-review.googlesource.com/c/go/+/696715 Reviewed-by: Carlos Amedee <carlos@golang.org> Reviewed-by: Sean Liao <sean@liao.dev> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Auto-Submit: Sean Liao <sean@liao.dev> Reviewed-by: David Chase <drchase@google.com>
This commit is contained in:
parent
5024d0d884
commit
1f2e8e03e4
1 changed files with 1 additions and 1 deletions
|
|
@ -105,7 +105,7 @@ func MkdirTemp(dir, pattern string) (string, error) {
|
|||
if try++; try < 10000 {
|
||||
continue
|
||||
}
|
||||
return "", &PathError{Op: "mkdirtemp", Path: dir + string(PathSeparator) + prefix + "*" + suffix, Err: ErrExist}
|
||||
return "", &PathError{Op: "mkdirtemp", Path: prefix + "*" + suffix, Err: ErrExist}
|
||||
}
|
||||
if IsNotExist(err) {
|
||||
if _, err := Stat(dir); IsNotExist(err) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue