mirror of
https://github.com/golang/go
synced 2024-11-19 08:54:47 -07:00
os: handle ' is a directory' error as IsExist on Plan 9
This error is returned by os.Mkdir when the directory already exists. This change fixes some upspin tests. Change-Id: I9ad5aefebb32dff577726d537b4f3826d79868eb Reviewed-on: https://go-review.googlesource.com/88656 Reviewed-by: David du Colombier <0intro@gmail.com> Run-TryBot: David du Colombier <0intro@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
parent
4a7334b7f2
commit
99e6e482f4
@ -5,7 +5,7 @@
|
||||
package os
|
||||
|
||||
func isExist(err error) bool {
|
||||
return checkErrMessageContent(err, " exists")
|
||||
return checkErrMessageContent(err, " exists", " is a directory")
|
||||
}
|
||||
|
||||
func isNotExist(err error) bool {
|
||||
|
Loading…
Reference in New Issue
Block a user