gitlab.com/evatix-go/core@v1.3.55/internal/fsinternal/IsDirectory.go (about) 1 package fsinternal 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 }