fix: use filepath helpers for filesystem paths

This commit is contained in:
Mathis Maquenne
2026-08-05 12:41:55 +02:00
parent b616a58d7b
commit e90a56ec53
7 changed files with 14 additions and 14 deletions
+2 -2
View File
@@ -2,7 +2,7 @@ package store
import (
"fmt"
"path"
"path/filepath"
bolt "go.etcd.io/bbolt"
)
@@ -12,7 +12,7 @@ type Store struct {
}
func Open(dir string) (*Store, error) {
db, err := bolt.Open(path.Join(dir, ".tracks.db"), 0600, nil)
db, err := bolt.Open(filepath.Join(dir, ".tracks.db"), 0600, nil)
if err != nil {
return nil, fmt.Errorf("failed to open database: %w", err)
}