Skip to content

Commit

Permalink
prepare db format
Browse files Browse the repository at this point in the history
  • Loading branch information
laktak committed Dec 31, 2024
1 parent ebd5816 commit f896288
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion store.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,12 @@ func ExportIndexDb(path, indexName string) error {
}
}

if idxPath, ierr := json.Marshal(string(k)); ierr == nil {
// remove index filename
key := filepath.Dir(string(k))
if key == "." {
key = ""
}
if idxPath, ierr := json.Marshal(key); ierr == nil {
if _, ierr = file.Write(idxPath); ierr != nil {
break
}
Expand Down

0 comments on commit f896288

Please sign in to comment.