func PassConfigExists() (bool, error) {
	c, err := GetConfigPath()
	if err != nil {
		return false, err
	}
	_, err = os.Stat(c)
	if err != nil {
		return false, err
	}
	return true, nil
}
PassConfigExists is used to determine if the secman config
file exists in the user's secman directory.
package pio
import (
	"bufio"
	"encoding/json"
	"errors"
	"fmt"
	"io/ioutil"
	"log"
	"os"
	"os/signal"
	"os/user"
	"path/filepath"
	"github.com/atotto/clipboard"
	"golang.org/x/crypto/ssh/terminal"
)
const (
	SECDIR = "SECDIR"
	ConfigFileName = "config"
	SiteFileName = "sites.json"
	EncryptedFileDir = "files"
)
var (
	MasterPassPrompt = "Enter master password"
)
type PassFile interface {
	SaveFile() (err error)
}
type ConfigFile struct {
	MasterKeyPrivSealed []byte
	PubKeyHmac          []byte
	SiteHmac            []byte
	MasterPubKey        [32]byte
	MasterPassKeySalt   [32]byte
	HmacSalt            [32]byte
	SiteHmacSalt        [32]byte
}
type SiteInfo struct {
	PubKey     [32]byte
	PassSealed []byte
	Name       string
	FileName   string
	IsFile     bool
}
type SiteFile []SiteInfo
func PassFileDirExists() (bool, error) {
	d, err := GetEncryptedFilesDir()
	if err != nil {
		return false, err
	}
	dirInfo, err := os.Stat(d)
	if err == nil {
		if dirInfo.IsDir() {
			return true, nil
		}
	} else {
		if os.IsNotExist(err) {
			return false, nil
		}
	}
	return false, err
}
func PassDirExists() (bool, error) {
	d, err := GetPassDir()
	if err != nil {
		return false, err
	}
	dirInfo, err := os.Stat(d)
	if err == nil {
		if !dirInfo.IsDir() {
			return true, nil
		}
	} else {
		if os.IsNotExist(err) {
			return false, nil
		}
	}
	return false, err
}