Avoid double file system enumerations
This commit is contained in:
parent
1ac8513f95
commit
ca1520341c
1 changed files with 1 additions and 1 deletions
|
@ -323,7 +323,7 @@
|
||||||
var entries = Directory.EnumerateFileSystemEntries(Path.Path);
|
var entries = Directory.EnumerateFileSystemEntries(Path.Path);
|
||||||
var separator = System.IO.Path.DirectorySeparatorChar;
|
var separator = System.IO.Path.DirectorySeparatorChar;
|
||||||
|
|
||||||
foreach (var entry in Directory.EnumerateFileSystemEntries(Path.Path))
|
foreach (var entry in entries)
|
||||||
{
|
{
|
||||||
if (Directory.Exists(entry))
|
if (Directory.Exists(entry))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue