diff --git a/Wabbajack.Lib/Downloaders/HTTPDownloader.cs b/Wabbajack.Lib/Downloaders/HTTPDownloader.cs index c0471c66..7f7d5e59 100644 --- a/Wabbajack.Lib/Downloaders/HTTPDownloader.cs +++ b/Wabbajack.Lib/Downloaders/HTTPDownloader.cs @@ -75,9 +75,12 @@ namespace Wabbajack.Lib.Downloaders public async Task 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) {