[Pythonmac-SIG] file system encoding and type

David Hughes dfh at forestfield.co.uk
Mon Jul 28 15:25:40 CEST 2008

Henning Hraban Ramm wrote:
> How can I detect for some entry in "/Volumes" what kind of volume it 
> is, e.g. Harddisk, USB stick, CD/DVD, and what encoding it uses?
> For a CD/DVD cataloguing tool I need to detect removable disks.
I use the attached to extract information from the system_profiler and 
diskutil commands. Maybe it can be adapted to return encodings as well.



David Hughes
Forestfield Software
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pythonmac-sig/attachments/20080728/ee5f8278/attachment.htm>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: macosx.py
URL: <http://mail.python.org/pipermail/pythonmac-sig/attachments/20080728/ee5f8278/attachment.txt>

More information about the Pythonmac-SIG mailing list