Skip to content

Commit df576b4

Browse files
committed
Update PacketViewModel.cs
1 parent dc33b1f commit df576b4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/WPF/GeneralUpdate.Packet/ViewModels/PacketViewModel.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,14 @@ await Application.Current.Dispatcher.BeginInvoke(new Action(() =>
315315
}));
316316
}
317317

318+
319+
/// <summary>
320+
/// Check whether the directory contains driver files.
321+
/// </summary>
322+
/// <param name="subPath"></param>
323+
/// <returns></returns>
324+
public bool IsDriver(string subPath) => Directory.EnumerateFiles(subPath, "*.inf").Any();
325+
318326
#endregion Private Methods
319327
}
320328
}

0 commit comments

Comments
 (0)