Create root directory explicitly, closes #22
This commit is contained in:
parent
fde6a9e630
commit
8f20593b26
@ -1,6 +1,8 @@
|
|||||||
package storage
|
package storage
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"os"
|
||||||
|
|
||||||
"github.com/khlieng/dispatch/pkg/session"
|
"github.com/khlieng/dispatch/pkg/session"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -8,6 +10,7 @@ var Path directory
|
|||||||
|
|
||||||
func Initialize(dir string) {
|
func Initialize(dir string) {
|
||||||
Path = directory(dir)
|
Path = directory(dir)
|
||||||
|
os.MkdirAll(Path.Root(), 0700)
|
||||||
}
|
}
|
||||||
|
|
||||||
type Store interface {
|
type Store interface {
|
||||||
|
Loading…
Reference in New Issue
Block a user