func (v *ParseDir) Parse() (uefi.Firmware, error) {
	jsonbuf, err := ioutil.ReadFile(filepath.Join(v.BasePath, "summary.json"))
	if err != nil {
		return nil, err
	}
	f, err := uefi.UnmarshalFirmware(jsonbuf)
	if err != nil {
		return nil, err
	}
	if err = f.Apply(v); err != nil {
		return nil, err
	}
	return f, nil
}
Parse parses a directory and creates the tree.
package visitors
import (
	"errors"
	"io/ioutil"
	"path/filepath"
	"github.com/linuxboot/fiano/pkg/uefi"
)
type ParseDir struct {
	BasePath string
}
func (v *ParseDir) Run(f uefi.Firmware) error {
	return errors.New("func Run for ParseDir is not implemented, do not use")
}