navidrome/utils/files.go

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
197 B
Go
Raw Permalink Normal View History

2024-02-18 00:19:51 +01:00
package utils
import (
"os"
"path/filepath"
"github.com/google/uuid"
)
func TempFileName(prefix, suffix string) string {
return filepath.Join(os.TempDir(), prefix+uuid.NewString()+suffix)
}