Avoid double file system enumerations

dhcp-server
Pat Hartl 2023-09-10 20:03:46 -05:00
parent 1ac8513f95
commit ca1520341c
1 changed files with 1 additions and 1 deletions

View File

@ -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))
{