tools/internal/fastwalk
Bryan C. Mills 2b542361a4 internal/fastwalk: attempt Symlink tests on Windows
Windows does actually support symlinks, but older versions of
Windows only support symlinks when running as an administrator.
Newer versions of Windows support symlinks for all users.

Instead of skipping based on GOOS, first try the Symlink operation.
If it succeeds, we can proceed with the test; otherwise, we can try to
write a regular file to determine whether the problem was the symlink
operation itself or the destination path.

For golang/go#38772

Change-Id: Idaa9592011473de7f514b889859e420a84db6d01
Reviewed-on: https://go-review.googlesource.com/c/tools/+/234537
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Michael Matloob <matloob@golang.org>
2020-05-21 21:19:27 +00:00
..
fastwalk.go all: fix some staticcheck errors 2020-01-29 04:53:41 +00:00
fastwalk_dirent_fileno.go imports: extract fastWalk into new package internal/fastwalk 2018-04-16 19:53:52 +00:00
fastwalk_dirent_ino.go imports: extract fastWalk into new package internal/fastwalk 2018-04-16 19:53:52 +00:00
fastwalk_dirent_namlen_bsd.go internal/fastwalk: don't cross Dirent.Reclen boundry while looking for NULL in parseDirEnt 2018-10-13 18:20:35 +00:00
fastwalk_dirent_namlen_linux.go internal/fastwalk: avoid slice bounds out of range for long file names 2018-11-12 23:16:31 +00:00
fastwalk_portable.go all: fix some staticcheck errors 2020-01-29 04:53:41 +00:00
fastwalk_test.go internal/fastwalk: attempt Symlink tests on Windows 2020-05-21 21:19:27 +00:00
fastwalk_unix.go internal/fastwalk: fix checkptr failure on Darwin 2020-02-27 19:33:42 +00:00