I'm very new to Raspberry Pi/Linux/Python world and I'm trying to identify one of the ports on my RPi, so if someone for example, connects a USB Flash drive (or anything) to that specific port an action will occur like turning on a LED and if it's disconnected the LED will turn off. I want the program to run infinitely until interrupted. I've already downloaded PyUSB, and I tried coding but it doesn't work because the only way I figured out how to detect if something is connected to the port is by identifying the idVendor and idProduct of the thing I'm going to connect and then if the program sees that the product is connected then it turns on the LED.
Since I won't always connect the same device into the USB port, I don't think that :
dev = usb.core.find(idVendor=0x****, idProduct=0x****)