mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Fix bug in verify with HTTPdownloader
This commit is contained in:
parent
00f702f1f8
commit
3c9743ec1e
@ -75,9 +75,12 @@ namespace Wabbajack.Lib.Downloaders
|
||||
|
||||
public async Task<bool> DoDownload(Archive a, string destination, bool download)
|
||||
{
|
||||
var parent = Directory.GetParent(destination);
|
||||
if (download && !Directory.Exists(parent.FullName))
|
||||
Directory.CreateDirectory(parent.FullName);
|
||||
if (download)
|
||||
{
|
||||
var parent = Directory.GetParent(destination);
|
||||
if (!Directory.Exists(parent.FullName))
|
||||
Directory.CreateDirectory(parent.FullName);
|
||||
}
|
||||
|
||||
using (var fs = download ? File.OpenWrite(destination) : null)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user