Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions CSAUSBTool.CrossPlatform/Models/ControlSystemSoftware.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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 })
{
Expand All @@ -56,7 +56,7 @@ public async Task Download(string outputPath, CancellationToken token)
return;
}

File.Delete(outputUri.AbsolutePath);
File.Delete(outputUri.LocalPath);
}
}
}
Expand All @@ -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);
Expand Down