Skip to content
Browse files

Speed up search for *.addin files by using Directory.GetFiles() with …

…SearchOption.AllDirectories
  • Loading branch information...
1 parent e030987 commit 550f9eaa766ed66ae4aed6a3745fa4566d8100a8 @dgrunwald dgrunwald committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/Main/Core/Project/Src/AddInTree/CoreStartup.cs
View
4 src/Main/Core/Project/Src/AddInTree/CoreStartup.cs
@@ -102,13 +102,13 @@ public CoreStartup(string applicationName)
/// <summary>
/// Find AddIns by searching all .addin files recursively in <paramref name="addInDir"/>.
- /// The found AddIns are added to the list of AddIn files to load.
+ /// The AddIns that were found are added to the list of AddIn files to load.
/// </summary>
public void AddAddInsFromDirectory(string addInDir)
{
if (addInDir == null)
throw new ArgumentNullException("addInDir");
- addInFiles.AddRange(FileUtility.SearchDirectory(addInDir, "*.addin"));
+ addInFiles.AddRange(Directory.GetFiles(addInDir, "*.addin", SearchOption.AllDirectories));
}
/// <summary>

0 comments on commit 550f9ea

Please sign in to comment.
Something went wrong with that request. Please try again.