Skip to content

Commit 107ca20

Browse files
change Enumerate* to Get*
1 parent dafbbc7 commit 107ca20

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/PowerShellEditorServices/Workspace/Workspace.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ private IEnumerable<string> RecursivelyEnumerateFiles(string folderPath)
241241

242242
try
243243
{
244-
IEnumerable<string> subDirs = Directory.EnumerateDirectories(folderPath);
244+
IEnumerable<string> subDirs = Directory.GetDirectories(folderPath);
245245
foreach (string dir in subDirs)
246246
{
247247
foundFiles =
@@ -274,7 +274,7 @@ private IEnumerable<string> RecursivelyEnumerateFiles(string folderPath)
274274
{
275275
foundFiles =
276276
foundFiles.Concat(
277-
Directory.EnumerateFiles(
277+
Directory.GetFiles(
278278
folderPath,
279279
pattern));
280280
}

0 commit comments

Comments
 (0)