Skip to content
This repository has been archived by the owner on Oct 16, 2020. It is now read-only.

Commit

Permalink
Speed up search for *.addin files by using Directory.GetFiles() with …
Browse files Browse the repository at this point in the history
…SearchOption.AllDirectories
  • Loading branch information
dgrunwald committed Sep 28, 2010
1 parent e030987 commit 550f9ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Main/Core/Project/Src/AddInTree/CoreStartup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 550f9ea

Please sign in to comment.