Skip to content

Commit db0bc2b

Browse files
Merge pull request #1015 from TrevorSundberg/main
Fix slowdown in prefab generator ignoring recursive flag
2 parents cad537e + 7329c86 commit db0bc2b

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

  • Assets/FishNet/Runtime/Editor/PrefabCollectionGenerator

Assets/FishNet/Runtime/Editor/PrefabCollectionGenerator/Generator.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,6 @@ public SpecifiedFolder(string path, bool recursive)
9797

9898
internal static string[] GetProjectFiles(string startingPath, string fileExtension, List<string> excludedPaths, bool recursive)
9999
{
100-
// Opportunity to exit early if there are no excluded paths.
101-
if (excludedPaths.Count == 0)
102-
{
103-
string[] strResults = Directory.GetFiles(startingPath, $"*{fileExtension}", SearchOption.AllDirectories);
104-
return strResults;
105-
}
106100
// starting path is excluded.
107101
if (excludedPaths.Contains(startingPath))
108102
return new string[0];

0 commit comments

Comments
 (0)