gitlab.com/evatix-go/core@v1.3.55/chmodhelper/IsDirectory.go (about)

     1  package chmodhelper
     2  
     3  import "os"
     4  
     5  func IsDirectory(location string) bool {
     6  	fileInfo, err := os.Stat(location)
     7  
     8  	if os.IsNotExist(err) {
     9  		return false
    10  	}
    11  
    12  	return fileInfo.IsDir()
    13  }