package fsrepo import ( config "github.com/jbenet/go-ipfs/repo/config" util "github.com/jbenet/go-ipfs/util" ) // ConfigIsInitialized returns true if the config exists in provided |path|. func ConfigIsInitialized(path string) bool { configFilename, err := config.Filename(path) if err != nil { return false } if !util.FileExists(configFilename) { return false } return true }