diff options
| author | Damien Neil <dneil@google.com> | 2025-05-19 13:09:06 -0700 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2025-05-21 10:14:43 -0700 |
| commit | e59e128f90aa2453d8881a622524df90feb9d22f (patch) | |
| tree | d9ddd62925b37e91fc6df6c199383aaef4bae7c2 /src/internal | |
| parent | 63dcc7b9067722a9ded7a67501a898764778108a (diff) | |
| download | go-e59e128f90aa2453d8881a622524df90feb9d22f.tar.xz | |
os: add Root.MkdirAll
For #67002
Change-Id: Idd74b5b59e787e89bdfad82171b6a7719465f501
Reviewed-on: https://go-review.googlesource.com/c/go/+/674116
Reviewed-by: Alan Donovan <adonovan@google.com>
Auto-Submit: Damien Neil <dneil@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Diffstat (limited to 'src/internal')
| -rw-r--r-- | src/internal/syscall/windows/at_windows.go | 2 | ||||
| -rw-r--r-- | src/internal/syscall/windows/syscall_windows.go | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/internal/syscall/windows/at_windows.go b/src/internal/syscall/windows/at_windows.go index 87a84c3da5..87e0195d30 100644 --- a/src/internal/syscall/windows/at_windows.go +++ b/src/internal/syscall/windows/at_windows.go @@ -159,6 +159,8 @@ func ntCreateFileError(err error, flag uint64) error { } case STATUS_FILE_IS_A_DIRECTORY: return syscall.EISDIR + case STATUS_OBJECT_NAME_COLLISION: + return syscall.EEXIST } return s.Errno() } diff --git a/src/internal/syscall/windows/syscall_windows.go b/src/internal/syscall/windows/syscall_windows.go index 20e6ae57a8..905cabc81e 100644 --- a/src/internal/syscall/windows/syscall_windows.go +++ b/src/internal/syscall/windows/syscall_windows.go @@ -548,6 +548,7 @@ func (s NTStatus) Error() string { // At the moment, we only need a couple, so just put them here manually. // If this list starts getting long, we should consider generating the full set. const ( + STATUS_OBJECT_NAME_COLLISION NTStatus = 0xC0000035 STATUS_FILE_IS_A_DIRECTORY NTStatus = 0xC00000BA STATUS_DIRECTORY_NOT_EMPTY NTStatus = 0xC0000101 STATUS_NOT_A_DIRECTORY NTStatus = 0xC0000103 |
