mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Fix broken state
This commit is contained in:
parent
f1c0ee1f2b
commit
0cb4e61150
@ -51,8 +51,9 @@ namespace Wabbajack.Lib.Downloaders
|
||||
|
||||
public async Task Download(string destination)
|
||||
{
|
||||
if (!Directory.Exists(Path.GetDirectoryName(destination)))
|
||||
Directory.CreateDirectory(Path.GetDirectoryName(destination));
|
||||
var path = Path.GetDirectoryName(destination);
|
||||
if (!string.IsNullOrEmpty(path) && !Directory.Exists(path))
|
||||
Directory.CreateDirectory(path);
|
||||
|
||||
await Download(new Archive {Name = Path.GetFileName(destination)}, destination);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user