From 3f7a47687c7798acc97b5ec0378539422ea6ad3e Mon Sep 17 00:00:00 2001 From: Pat Hartl Date: Sun, 10 Sep 2023 23:29:23 -0500 Subject: [PATCH] Correctly filter current files listed from archive directory --- LANCommander/Components/FileManagerComponents/FileManager.razor | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LANCommander/Components/FileManagerComponents/FileManager.razor b/LANCommander/Components/FileManagerComponents/FileManager.razor index 25c796c..aff6e9a 100644 --- a/LANCommander/Components/FileManagerComponents/FileManager.razor +++ b/LANCommander/Components/FileManagerComponents/FileManager.razor @@ -365,7 +365,7 @@ var entries = await ArchiveService.GetContents(ArchiveId); var separator = '/'; - foreach (var entry in entries) + foreach (var entry in entries.Where(e => e.FullName != Path.Path && e.FullName.StartsWith(Path.Path) && !e.FullName.Substring(Path.Path.Length).TrimEnd(separator).Contains(separator))) { if (entry.FullName.EndsWith(separator)) {