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
@@ -4,7 +4,7 @@ import (
"context"
"errors"
"fmt"
"path"
"path/filepath"
"strings"
"time"
@@ -43,7 +43,7 @@ func (d *Downloader) downloadTrack(ctx context.Context, resource deezer.Resource
defer cancel()
fileName := track.Filename(d.kind, mediaFormat)
outputPath := path.Join(outputDir, fileName)
outputPath := filepath.Join(outputDir, fileName)
key := deezer.BlowfishKey(track.ID)
if err := d.streamToFile(dlCtx, stream, outputPath, key); err != nil {