mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Fix for HTTP download directory creation
This commit is contained in:
parent
57da9dc87a
commit
7926870fab
@ -111,7 +111,11 @@ namespace Wabbajack.Lib.Downloaders
|
|||||||
|
|
||||||
var contentSize = headerVar != null ? long.Parse(headerVar) : 1;
|
var contentSize = headerVar != null ? long.Parse(headerVar) : 1;
|
||||||
|
|
||||||
Directory.CreateDirectory(Path.GetDirectoryName(destination));
|
FileInfo fileInfo = new FileInfo(destination);
|
||||||
|
if (!fileInfo.Directory.Exists)
|
||||||
|
{
|
||||||
|
Directory.CreateDirectory(fileInfo.Directory.FullName);
|
||||||
|
}
|
||||||
|
|
||||||
using (var webs = stream.Result)
|
using (var webs = stream.Result)
|
||||||
using (var fs = File.OpenWrite(destination))
|
using (var fs = File.OpenWrite(destination))
|
||||||
|
Loading…
Reference in New Issue
Block a user