From 5ec0c30062cd682fec9383fdcb3ef6682b4503ab Mon Sep 17 00:00:00 2001 From: Gerard Smit Date: Sat, 17 Feb 2024 16:14:04 +0100 Subject: [PATCH] fix(DownloadService): use Path.Combine for combining paths --- .../Providers/MangaDex/MangaDexDownloadService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/MangaMagnet.Core/Providers/MangaDex/MangaDexDownloadService.cs b/backend/MangaMagnet.Core/Providers/MangaDex/MangaDexDownloadService.cs index 53a240a..081498d 100644 --- a/backend/MangaMagnet.Core/Providers/MangaDex/MangaDexDownloadService.cs +++ b/backend/MangaMagnet.Core/Providers/MangaDex/MangaDexDownloadService.cs @@ -25,7 +25,7 @@ public async Task DownloadChapterPagesAsync(double chapt int? volume = string.IsNullOrEmpty(attributes.Volume) ? null : int.Parse(attributes.Volume); var scanlationGroup = relationships.First(x => x.Type == "scanlation_group").Attributes.Name; - var tempPageFolder = $"{Path.GetTempPath()}/MangaMagnet-{Guid.NewGuid().ToString()}"; + var tempPageFolder = Path.Combine(Path.GetTempPath(), $"MangaMagnet-{Guid.NewGuid().ToString()}"); await Task.Run(() => Directory.CreateDirectory(tempPageFolder), cancellationToken); logger.LogDebug("Created temporary directory {Path}", tempPageFolder);