mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Merge branch 'master' into patch-freeze-investigation
This commit is contained in:
commit
0e66b31f64
@ -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