// Open will allow the FileStore to be used.
Open will allow the FileStore to be used.
// Open will allow the FileStore to be used .
func (store *FileStore) Open() {
	store.Lock()
	defer store.Unlock()
	if store.directory == "" {
		store.directory, _ = os.Getwd()
	}
	if !exists(store.directory) {
		perms := os.FileMode(0770)
		merr := os.MkdirAll(store.directory, perms)
		chkerr(merr)
	}
	store.opened = true
	DEBUG.Println(STR, "store is opened at", store.directory)
}
func ( store * FileStore ) Open ( ) { store . Lock ( ) defer store . Unlock ( ) if store . directory == " " { store . directory , _ = os . Getwd ( ) } if ! exists ( store . directory ) { perms := os . FileMode ( 0770 ) merr := os . MkdirAll ( store . directory , perms ) chkerr ( merr ) } store . opened = true DEBUG . Println ( STR , " " , store . directory ) }
Open will allow the FileStore to be used.
Open will allow the FileStore to be used .
// if no store directory was specified in ClientOpts, by default use the // current working directory // if store dir exists, great, otherwise, create it