Skip to content

Commit a03ab5f

Browse files
committed
switch location of store dir to home dir
1 parent 44ff301 commit a03ab5f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

store/file.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,15 @@ import (
1414
)
1515

1616
var (
17+
HomeDir, _ = os.UserHomeDir()
18+
1719
// DefaultDatabase is the namespace that the bbolt store
1820
// will use if no namespace is provided.
1921
DefaultDatabase = "micro"
2022
// DefaultTable when none is specified.
2123
DefaultTable = "micro"
2224
// DefaultDir is the default directory for bbolt files.
23-
DefaultDir = filepath.Join(".", "micro", "store")
25+
DefaultDir = filepath.Join(HomeDir, "micro", "store")
2426

2527
// bucket used for data storage.
2628
dataBucket = "data"

0 commit comments

Comments
 (0)