From 8f20593b26be218e1d7af21154a24b412471de1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ken-H=C3=A5vard=20Lieng?= Date: Sun, 17 Jun 2018 23:47:05 +0200 Subject: [PATCH] Create root directory explicitly, closes #22 --- storage/storage.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/storage/storage.go b/storage/storage.go index c092b983..d32a8c6f 100644 --- a/storage/storage.go +++ b/storage/storage.go @@ -1,6 +1,8 @@ package storage import ( + "os" + "github.com/khlieng/dispatch/pkg/session" ) @@ -8,6 +10,7 @@ var Path directory func Initialize(dir string) { Path = directory(dir) + os.MkdirAll(Path.Root(), 0700) } type Store interface {