Skip to content

Commit c70e506

Browse files
johnpiersonCopilot
andauthored
DYN-10020 - Revise Sample File Directory Traversing (#16820)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 5d1c0dc commit c70e506

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/DynamoCoreWpf/Controls/StartPage.xaml.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,8 +226,9 @@ internal void WalkDirectoryTree(System.IO.DirectoryInfo root, SampleFileEntry ro
226226
{
227227
foreach (System.IO.DirectoryInfo directory in directories)
228228
{
229-
//Make sure the folder's name is not "backup"
230-
if (!directory.Name.Equals(Configurations.BackupFolderName))
229+
//Make sure the folder's name is not "backup" and not "GD"
230+
if (!directory.Name.Equals(Configurations.BackupFolderName) &&
231+
!directory.Name.Equals("GD", StringComparison.OrdinalIgnoreCase))
231232
{
232233
// Recursive call for each subdirectory.
233234
SampleFileEntry sampleFileEntry =

0 commit comments

Comments
 (0)