Is possible to get only the removable USB drives and (not so necessary) their tags on Windows using Python? On Linux (Ubuntu), you only need to list the /media
folder.
Here's my current code (it lists all available drives letters including system drive, cd/dvd drives, etc):
import win32api
dv = win32api.GetLogicalDriveStrings()
dv = dv.split('\000')[:-1]
print dv
The result is something like this:
['C:\\', 'D:\\', 'E:\\']
I'd like only the USB mass storage drives... any help?
Regards...