From ca1520341cbe12509a1fa87ff4cda369f1930773 Mon Sep 17 00:00:00 2001 From: Pat Hartl Date: Sun, 10 Sep 2023 20:03:46 -0500 Subject: [PATCH] Avoid double file system enumerations --- 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 d8e364c..c3c0e30 100644 --- a/LANCommander/Components/FileManagerComponents/FileManager.razor +++ b/LANCommander/Components/FileManagerComponents/FileManager.razor @@ -323,7 +323,7 @@ var entries = Directory.EnumerateFileSystemEntries(Path.Path); var separator = System.IO.Path.DirectorySeparatorChar; - foreach (var entry in Directory.EnumerateFileSystemEntries(Path.Path)) + foreach (var entry in entries) { if (Directory.Exists(entry)) {