Skip to content

Commit

Permalink
fix: Mkdir permission denied--#8
Browse files Browse the repository at this point in the history
  • Loading branch information
CrazyJius committed May 9, 2023
1 parent 4400b8e commit ca83069
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion merge.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,10 @@ func (db *DB) Merge() error {
func (db *DB) getMergePath() string {
// 获取数据库父级目录
parentDir := path.Dir(path.Clean(db.options.DirPath))
// DB base path
basePath := path.Base(db.options.DirPath)
// 返回 merge 文件路径
return filepath.Join(parentDir + mergeDirName)
return filepath.Join(parentDir, basePath+mergeDirName)
}

// 加载 merge 数据目录
Expand Down

0 comments on commit ca83069

Please sign in to comment.