From: qmuntal Date: Tue, 22 Nov 2022 08:43:04 +0000 (+0100) Subject: doc/go1.20: document changes to os on Windows X-Git-Tag: go1.20rc1~88 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=ff18af84019c7f6ce245db2aa6b19bb62c4ae02b;p=gostls13.git doc/go1.20: document changes to os on Windows This CL documents the changes introduced by https://go-review.googlesource.com/c/go/+/405275. Change-Id: I541712d65f2823ecdf606c5b91035cde55ecdac6 Reviewed-on: https://go-review.googlesource.com/c/go/+/452735 TryBot-Result: Gopher Robot Reviewed-by: Damien Neil Reviewed-by: Bryan Mills Run-TryBot: Quim Muntal --- diff --git a/doc/go1.20.html b/doc/go1.20.html index 9a90cb8a80..d8e6a81744 100644 --- a/doc/go1.20.html +++ b/doc/go1.20.html @@ -770,6 +770,19 @@ proxyHandler := &httputil.ReverseProxy{

TODO: https://go.dev/cl/448897: os: remove special casing of NUL in Windows file operations

+

+ On Windows, File.Stat + now uses the file handle to retrieve attributes when the file is a directory. + Previously it would use the path passed to + Open, which may no longer be the file + represented by the file handle if the file has been moved or replaced. + This change modifies Open to open directories without the + FILE_SHARE_DELETE access, which match the behavior of regular files. +

+

+ On Windows, File.Seek now supports + seeking to the beginning of a directory. +