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:
@ -75,9 +75,12 @@ namespace Wabbajack.Lib.Downloaders
|
|||||||
|
|
||||||
public async Task<bool> DoDownload(Archive a, string destination, bool download)
|
public async Task<bool> DoDownload(Archive a, string destination, bool download)
|
||||||
{
|
{
|
||||||
var parent = Directory.GetParent(destination);
|
if (download)
|
||||||
if (download && !Directory.Exists(parent.FullName))
|
{
|
||||||
Directory.CreateDirectory(parent.FullName);
|
var parent = Directory.GetParent(destination);
|
||||||
|
if (!Directory.Exists(parent.FullName))
|
||||||
|
Directory.CreateDirectory(parent.FullName);
|
||||||
|
}
|
||||||
|
|
||||||
using (var fs = download ? File.OpenWrite(destination) : null)
|
using (var fs = download ? File.OpenWrite(destination) : null)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user