Skip to content

Commit

Permalink
save metadata to bases dir
Browse files Browse the repository at this point in the history
  • Loading branch information
mopo3ilo committed Jun 21, 2023
1 parent 2a57d8c commit 5183233
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ func main() {
if !ok {
log.Fatal("database not exist")
}
fDatabase += ".json"
os.MkdirAll("bases", os.ModePerm)
fDatabase = "bases/" + fDatabase + ".json"
log.Println("load metadata")
met, err := sql1cv8.LoadNewer(con, fDatabase)
if err != nil {
Expand Down

0 comments on commit 5183233

Please sign in to comment.