Avoid double file system enumerations
parent
1ac8513f95
commit
ca1520341c
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue