github.com/covergates/covergates@v0.2.2-0.20201009050117-42ef8a19fb95/modules/util/path.go (about)

     1  package util
     2  
     3  import (
     4  	"os"
     5  )
     6  
     7  // IsDir path
     8  func IsDir(path string) bool {
     9  	fi, err := os.Lstat(path)
    10  	if err != nil {
    11  		return false
    12  	}
    13  	return fi.IsDir()
    14  }