mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
fix for the case where the downloads folder contains multiple copies of the same file
This commit is contained in:
parent
2adb14fe5b
commit
41daec2c3b
@ -595,6 +595,9 @@ namespace Wabbajack
|
||||
HashedArchives = Directory.EnumerateFiles(DownloadFolder)
|
||||
.Where(e => Consts.SupportedArchives.Contains(Path.GetExtension(e)))
|
||||
.PMap(e => (HashArchive(e), e))
|
||||
.OrderByDescending(e => File.GetLastWriteTime(e.Item2))
|
||||
.GroupBy(e => e.Item1)
|
||||
.Select(e => e.First())
|
||||
.ToDictionary(e => e.Item1, e => e.Item2);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user