getUsbDevices
getUsbDevices
Retrieves the USB devices connected to the system, with the option to represent them as a device tree.
Return
A list of UsbDevice
objects representing the USB devices.
Parameters
tree
Whether to return a tree structure of connected devices.