From 64b86b65a11dd0ce4af495706d4b2973106b3d7f Mon Sep 17 00:00:00 2001 From: Heggo Date: Fri, 12 Dec 2025 11:27:09 +0100 Subject: [PATCH] Fix Linux Download Path (#153) * Fix Unknown being appended at the beginning of Download Path on Unix/Linux systems * Remove extra blank line in backend/filename.go --- backend/filename.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/backend/filename.go b/backend/filename.go index a05ec91..d5b5b28 100644 --- a/backend/filename.go +++ b/backend/filename.go @@ -80,6 +80,12 @@ func SanitizeFolderPath(folderPath string) string { continue } + // Keep empty string at the start for absolute paths on Unix + if i == 0 && part == "" { + sanitizedParts = append(sanitizedParts, part) + continue + } + // Sanitize each folder name (but don't replace / or \ since we already normalized) sanitized := sanitizeFolderName(part) if sanitized != "" {