ivanilves/travelgrunt

View on GitHub
pkg/config/mode/common.go

Summary

Maintainability
A
0 mins
Test Coverage
package mode

import (
    "os"
)

// FileOrSymlink tells us if dir entry in question is a regular file or a symlink
func FileOrSymlink(d os.DirEntry) bool {
    return d.Type().IsRegular() || d.Type() == os.ModeSymlink
}