]> Cypherpunks.ru repositories - gostls13.git/commit
path/filepath: don't return SkipDir at top
authorIan Lance Taylor <iant@golang.org>
Thu, 7 Jul 2016 00:11:29 +0000 (17:11 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Thu, 25 Aug 2016 17:18:43 +0000 (17:18 +0000)
commit157fc454eccb850a0a74029a49f8d947ff1a3762
tree5a082689ace833b432993750cb428ca3812b161e
parent307de6540a5e6e5c2353c410240bb0f98bab1624
path/filepath: don't return SkipDir at top

If the walker function called on a top-level file returns SkipDir,
then (before this change) Walk would return SkipDir, which the
documentation implies will not happen.

Fixes #16280.

Change-Id: I37d63bdcef7af4b56e342b624cf0d4b42e65c297
Reviewed-on: https://go-review.googlesource.com/24780
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/path/filepath/path.go
src/path/filepath/path_test.go