From 9595f3939c1c129ed875a47adcc4fbcfad9a0e65 Mon Sep 17 00:00:00 2001 From: Dominik <18555104+FadedAtlas@users.noreply.github.com> Date: Sun, 28 Dec 2025 22:07:00 +0100 Subject: [PATCH] fix: conversion of backslashes in file paths for archive creation (#5637) Co-authored-by: FadedAtlas --- http/raw.go | 1 + 1 file changed, 1 insertion(+) diff --git a/http/raw.go b/http/raw.go index bed04310..a6857ffb 100644 --- a/http/raw.go +++ b/http/raw.go @@ -123,6 +123,7 @@ func getFiles(d *data, path, commonPath string) ([]archives.FileInfo, error) { if path != commonPath { nameInArchive := strings.TrimPrefix(path, commonPath) nameInArchive = strings.TrimPrefix(nameInArchive, string(filepath.Separator)) + nameInArchive = filepath.ToSlash(nameInArchive) archiveFiles = append(archiveFiles, archives.FileInfo{ FileInfo: info,