go/src/path
Alex Brainman 1989921aef os: do not report ModeDir for symlinks on windows
When using Lstat against symlinks that point to a directory,
the function returns FileInfo with both ModeDir and ModeSymlink set.
Change that to never set ModeDir if ModeSymlink is set.

Fixes #10424
Fixes #17540
Fixes #17541

Change-Id: Iba280888aad108360b8c1f18180a24493fe7ad2b
Reviewed-on: https://go-review.googlesource.com/41830
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2017-04-26 23:17:23 +00:00
..
filepath os: do not report ModeDir for symlinks on windows 2017-04-26 23:17:23 +00:00
example_test.go path, path/filepath: add Join example with joined rooted path 2016-04-03 16:55:51 +00:00
match.go all: replace strings.Index with strings.Contains where possible 2016-02-19 01:06:05 +00:00
match_test.go
path.go path: document that filepath is recommended to manipulate filename paths 2016-11-08 18:36:52 +00:00
path_test.go path: fix up bizarre test 2016-03-16 03:59:03 +00:00