Create root directory explicitly, closes #22

This commit is contained in:
Ken-Håvard Lieng 2018-06-17 23:47:05 +02:00
parent fde6a9e630
commit 8f20593b26

View File

@ -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 {