From b1011bd63edf804cbad38a73f0fe7870bad974a1 Mon Sep 17 00:00:00 2001 From: erri120 Date: Mon, 27 Apr 2020 13:06:57 +0200 Subject: [PATCH] Fixed path with whitespace in archive not being extracted --- Wabbajack.VirtualFileSystem/FileExtractor.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Wabbajack.VirtualFileSystem/FileExtractor.cs b/Wabbajack.VirtualFileSystem/FileExtractor.cs index 9e916349..c9953a68 100644 --- a/Wabbajack.VirtualFileSystem/FileExtractor.cs +++ b/Wabbajack.VirtualFileSystem/FileExtractor.cs @@ -142,8 +142,8 @@ namespace Wabbajack.VirtualFileSystem //It's stupid that we have to do this, but 7zip's file pattern matching isn't very fuzzy IEnumerable AllVariants(string input) { - yield return input; - yield return "\\" + input; + yield return $"\"{input}\""; + yield return $"\"\\{input}\""; } tmpFile = new TempFile();