get a list of mounted filesystems under MacOSX
Tim Golden
tim.golden at viacom-outdoor.co.uk
Mon Aug 15 11:39:35 EDT 2005
[garabik-news-2005-05 at kassiopeia.juls.savba.sk]
| And when we are at this, how to find out a list of mounted filesystems
| under MS Windows? (yes, I know, there is a difference between cygwin
| python and native port, and the term "mounted" is not used in
| MS Windows
| world much)
WMI will do it under Win32. (Don't know about Cygwin).
<code>
import wmi
for d in wmi.WMI ().Win32_LogicalDisk ():
print d.Caption, d.Description, d.ProviderName
</code>
TJG
________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________
More information about the Python-list
mailing list