Is device Connected Windows?

placid Bulkan at gmail.com
Wed May 31 23:52:49 EDT 2006


Hi all,

Just wondering is there a way (not brute force) to check if a usb
storage device is connected?

The brute force method im talking about is doing a os.path.isdir()  or
os.path.isdir() on all the drive letters from A-Z, because you know
that this usb device contains a folder called A or file called foo.txt.


Thanks in Advance




More information about the Python-list mailing list