Skip to content

Commit

Permalink
Update PacketViewModel.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
JusterZhu committed Dec 27, 2023
1 parent dc33b1f commit df576b4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/WPF/GeneralUpdate.Packet/ViewModels/PacketViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,14 @@ await Application.Current.Dispatcher.BeginInvoke(new Action(() =>
}));
}


/// <summary>
/// Check whether the directory contains driver files.
/// </summary>
/// <param name="subPath"></param>
/// <returns></returns>
public bool IsDriver(string subPath) => Directory.EnumerateFiles(subPath, "*.inf").Any();

#endregion Private Methods
}
}

0 comments on commit df576b4

Please sign in to comment.