Skip to content

Commit 74b9ebf

Browse files
committed
tests: fix test on Windows
1 parent 4b11fec commit 74b9ebf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dirent_portable.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ func (d *portableDirent) Stat() (fs.FileInfo, error) {
3535
if runtime.GOOS == "windows" {
3636
// On Windows use Info() if the file is not a symlink since
3737
// IIRC the result is cached when the FileInfo is created.
38-
if d.DirEntry.Type()&fs.ModeSymlink != 0 {
38+
if d.DirEntry.Type()&fs.ModeSymlink == 0 {
3939
return d.Info()
4040
}
4141
}

0 commit comments

Comments
 (0)