// IsDirectory returns true if a given path points to a directory.
IsDirectory returns true if a given path points to a directory.
// IsDirectory returns true if a given path points to a directory .
func IsDirectory(filePath string) bool {
	stat, err := os.Stat(filePath)
	if err != nil {
		return false
	}
	return stat.IsDir()
}
func IsDirectory ( filePath string ) bool { stat , err := os . Stat ( filePath ) if err != nil { return false } return stat . IsDir ( ) }
IsDirectory returns true if a given path points to a directory.
IsDirectory returns true if a given path points to a directory .