mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Don't delete the download folder
This commit is contained in:
parent
873d53e76c
commit
c50ccb964e
@ -382,7 +382,10 @@ namespace Wabbajack.Lib
|
||||
.Do(d => indexed.Remove(d.To));
|
||||
|
||||
Utils.Log("Cleaning empty folders");
|
||||
var expectedFolders = indexed.Keys.SelectMany(path =>
|
||||
var expectedFolders = indexed.Keys
|
||||
// We ignore the last part of the path, so we need a dummy file name
|
||||
.Append(Path.Combine(DownloadFolder, "_"))
|
||||
.SelectMany(path =>
|
||||
{
|
||||
// Get all the folders and all the folder parents
|
||||
// so for foo\bar\baz\qux.txt this emits ["foo", "foo\\bar", "foo\\bar\\baz"]
|
||||
|
Loading…
Reference in New Issue
Block a user