func (sf SQLFile) Create(contents string) error {
	if exists, err := sf.Exists(); err != nil {
		return err
	} else if exists {
		return fmt.Errorf("Cannot create %s: already exists", sf)
	}
	return ioutil.WriteFile(sf.Path(), []byte(contents), 0666)
}
Create writes a new file, erroring if it already exists.
package fs
import (
	"fmt"
	"io/ioutil"
	"os"
	"path/filepath"
	"regexp"
	"strings"
	"unicode"
	"github.com/skeema/tengo"
)
type SQLFile struct {
	Dir      string
	FileName string
}
type TokenizedSQLFile struct {
	SQLFile
	Statements []*Statement
}
func (sf SQLFile) Path() string {
	return filepath.Join(sf.Dir, sf.FileName)
}
func (sf SQLFile) String() string {
	return sf.Path()
}
func (sf SQLFile) Exists() (bool, error) {
	_, err := os.Stat(sf.Path())
	if err == nil {
		return true, nil
	} else if os.IsNotExist(err) {
		return false, nil
	}
	return false, err
}