mirror of
https://github.com/minio/minio.git
synced 2025-11-22 10:37:42 -05:00
Remove go1.9 specific code for windows (#5033)
Following fix https://go-review.googlesource.com/#/c/41834/ has been merged upstream and released with go1.9.
This commit is contained in:
committed by
Nitish Tiwari
parent
ad53c5d859
commit
3d0dced23c
@@ -75,12 +75,12 @@ func parseDirents(dirPath string, buf []byte) (entries []string, err error) {
|
||||
case syscall.DT_REG:
|
||||
entries = append(entries, name)
|
||||
case syscall.DT_LNK, syscall.DT_UNKNOWN:
|
||||
// If its symbolic link, follow the link using osStat()
|
||||
// If its symbolic link, follow the link using os.Stat()
|
||||
|
||||
// On Linux XFS does not implement d_type for on disk
|
||||
// format << v5. Fall back to OsStat().
|
||||
var fi os.FileInfo
|
||||
fi, err = osStat(path.Join(dirPath, name))
|
||||
fi, err = os.Stat(path.Join(dirPath, name))
|
||||
if err != nil {
|
||||
// If file does not exist, we continue and skip it.
|
||||
// Could happen if it was deleted in the middle while
|
||||
|
||||
Reference in New Issue
Block a user