We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4b11fec commit 03c16d3Copy full SHA for 03c16d3
dirent_portable.go
@@ -8,7 +8,6 @@ package fastwalk
8
import (
9
"io/fs"
10
"os"
11
- "runtime"
12
"sort"
13
"sync"
14
@@ -32,13 +31,6 @@ func (d *portableDirent) Depth() int {
32
31
}
33
34
func (d *portableDirent) Stat() (fs.FileInfo, error) {
35
- if runtime.GOOS == "windows" {
36
- // On Windows use Info() if the file is not a symlink since
37
- // IIRC the result is cached when the FileInfo is created.
38
- if d.DirEntry.Type()&fs.ModeSymlink != 0 {
39
- return d.Info()
40
- }
41
42
return os.Stat(d.parent + string(os.PathSeparator) + d.Name())
43
44
0 commit comments