Helo everybody,
I am working on a project that requires detecting if a new Usb storage has been pluged in. In a first moment I installed PyUSB (And one of its requiered low level usb libs like usblib) but then I noticed that this lib is quite complex just for the simple task I want to do.
In fact, I would like to detect the usb connecteds, and the new ones that could be connected and then browse to the root of the usb for example and list all its files.
Thanks for your help.
My best regards,
EDIT: I've just wondered a better way to do it. My script starts on boot so It could list the connected usbs on boot, and then, each 10 seconds for example check again connected usbs, if its modified from the original listing, I'll know that something new has been inserted, more or less. Any ideas of how to list connected usb devices?
pedro_javierf