func (file File) FileEqual(file2 File) bool {
	return bytes.Equal(file.Content, file2.Content)
}
FileEqual ensures that the two files have the same content
package fs
import (
	"bytes"
	"github.com/thazelart/terraform-validator/pkg/utils"
	"io/ioutil"
	"path/filepath"
)
type File struct {
	Path    string
	Content []byte
}
func NewFile(path string) File {
	content, err := ioutil.ReadFile(path)
	utils.EnsureOrFatal(err)
	return File{Path: path, Content: content}
}
func (file File) GetFilename() string {
	return filepath.Base(file.Path)
}