Skip to content

Commit

Permalink
fix(DownloadService): use Path.Combine for combining paths
Browse files Browse the repository at this point in the history
  • Loading branch information
GerardSmit committed Feb 17, 2024
1 parent 2e5b719 commit 5ec0c30
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public async Task<MangaDexDownloadResult> 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);
Expand Down

0 comments on commit 5ec0c30

Please sign in to comment.