You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: filesystem.go
    path of file: ./repos/graphql-engine/cli/util
    
    the code of the file until where you have to start completion: package util

import (
	"fmt"
	"io"
	"io/ioutil"
	"os"
	"path"

	"github.com/hasura/graphql-engine/cli/v2/internal/errors"
)

func FSCheckIfDirPathExists(path string) error {
	var op errors.Op = "util.FSCheckIfDirPathExists"
	stat, err := os.Lstat(path)
	if err != nil {
		return errors.E(op, err)
	}
	if !stat.Is
    
func FSCopyDir(src string, dst string) error {
	var op errors.Op = "util.FSCopyDir"
	var err error
	var fds []os.FileInfo
	var srcinfo os.FileInfo

	if srcinfo, err = os.Stat(src); err != nil {
		return errors.E(op, err)
	}

	if err = os.MkdirAll(dst, srcinfo.Mode()); err != nil {
		return errors.E(op, err)
	}

	if fds, err = ioutil.ReadDir(src); err != nil {
		return errors.E(op, err)
	}
	for _, fd := range fds {
		srcfp := path.Join(src, fd.Name())
		dstfp := path.Join(dst, fd.Name())

		if fd.IsDir() {
			if err = FSCopyDir(srcfp, dstfp); err != nil {
				fmt.Println(err)
			}
		} else {
			if err = FSCopyFile(srcfp, dstfp); err != nil {
				fmt.Println(err)
			}
		}
	}
	return nil
}