diff --git a/CSAUSBTool.CrossPlatform/Models/ControlSystemSoftware.cs b/CSAUSBTool.CrossPlatform/Models/ControlSystemSoftware.cs index 6e42f33..08ff7e7 100644 --- a/CSAUSBTool.CrossPlatform/Models/ControlSystemSoftware.cs +++ b/CSAUSBTool.CrossPlatform/Models/ControlSystemSoftware.cs @@ -43,7 +43,7 @@ public async Task Download(string outputPath, CancellationToken token) var outputUri = new Uri(new Uri(outputPath), FileName); try { - await using var existingFile = File.OpenRead(System.Uri.UnescapeDataString(outputUri.AbsolutePath)); + await using var existingFile = File.OpenRead(System.Uri.UnescapeDataString(outputUri.LocalPath)); if (existingFile is { Length: > 0 }) { @@ -56,7 +56,7 @@ public async Task Download(string outputPath, CancellationToken token) return; } - File.Delete(outputUri.AbsolutePath); + File.Delete(outputUri.LocalPath); } } } @@ -67,7 +67,7 @@ public async Task Download(string outputPath, CancellationToken token) using var client = - new HttpClientDownloadWithProgress(Uri, outputUri.AbsolutePath); + new HttpClientDownloadWithProgress(Uri, outputUri.LocalPath); //client.ProgressChanged += _8kbBuffer; client.ProgressChanged += UpdateProgress; await client.StartDownload(token);