From b24825d45313f1a1325cacb0fb22ca784a4e1efc Mon Sep 17 00:00:00 2001 From: Anthony Lapenna Date: Thu, 16 Mar 2017 11:23:01 +0100 Subject: [PATCH] feat(backend): check for the full database path to verify its existence (#681) --- api/bolt/datastore.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/bolt/datastore.go b/api/bolt/datastore.go index 79e859a5f..0b41ee306 100644 --- a/api/bolt/datastore.go +++ b/api/bolt/datastore.go @@ -49,7 +49,7 @@ func NewStore(storePath string) (*Store, error) { store.ResourceControlService.store = store store.VersionService.store = store - _, err := os.Stat(storePath) + _, err := os.Stat(storePath + "/" + databaseFileName) if err != nil && os.IsNotExist(err) { store.checkForDataMigration = false } else if err != nil {