[Pythonmac-SIG] detecting mounted disks
Bob Ippolito
bob at redivi.com
Sun Jul 16 19:06:40 CEST 2006
On Jul 16, 2006, at 4:28 AM, Henning Hraban Ramm wrote:
> How can I detect if an entry in MacOSX's /Volumes (or more generally:
> any mount point in a UNIX-like OS) is...
> - a local harddisk
> - a network volume
> - a CD/DVD-ROM
> - something other (USB stick...)
> ?
>
> I guess I could get some info from 'mount', but isn't there already a
> Python function?
> o.path's ismount and isdir aren't enough.
You'd probably have to get that information from IOKit, which isn't
wrapped by Python at all.
-bob
More information about the Pythonmac-SIG
mailing list