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);