fix: conversion of backslashes in file paths for archive creation

This commit is contained in:
FadedAtlas 2025-12-26 18:39:07 +01:00
parent f89975603e
commit c7de8d50ec

View File

@ -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,