recognize a drive as removable media (e.g. compact flash, sd card or usb drive)
grbridgeREMOVETHIS at btinternet.com
Wed May 3 02:53:41 CEST 2006
Tim Golden <tim.golden at viacom-outdoor.co.uk> wrote:
> Mike Joyce wrote:
> > I am trying to write a portable script that will find removable media,
> > such as compact flash, sd card, usb, etc. drive and then upload files
> > from the media. I want this to be portable so that I can write and
> > maintain one program for both Linux and Windows. Each platform uses
> > different functions so even if I could find two platform dependent
> > functions that would be fine. Basically, I would like to avoid checking
> > fixed disks if possible.
> > If anyone know of a good way to do this please let me know. Thanks in
> > advance for any help.
> Under Windows, you can probably use WMI for this, depending on
> exactly what it is you're trying to do. If I read you right, you want
> scan all devices, determine the removable ones, and then read stuff
> off them.
Any suggestions as to doing this on a Mac?
More information about the Python-list