// InitDb initialize the global Db instance located at (HOME_PATH/.orbit-drive/datastore)
InitDb initialize the global Db instance located at (HOME_PATH/.orbit-drive/datastore)
// InitDb initialize the global Db instance located at ( HOME_PATH / . orbit - drive / datastore )
func InitDb() error {
	cp := utils.GetConfigDir() + "/datastore"
	if !utils.PathExists(cp) {
		os.Mkdir(cp, os.ModePerm)
	}
	var err error
	Db, err = leveldb.OpenFile(cp, nil)
	return err
}
func InitDb ( ) error { cp := utils . GetConfigDir ( ) + " " if ! utils . PathExists ( cp ) { os . Mkdir ( cp , os . ModePerm ) } var err error Db , err = leveldb . OpenFile ( cp , nil ) return err }
InitDb initialize the global Db instance located at (HOME_PATH/.orbit-drive/datastore)
InitDb initialize the global Db instance located at ( HOME_PATH / . orbit - drive / datastore )