get a list of mounted filesystems under MacOSX

rafi rafi at free.fr
Mon Aug 15 12:06:43 EDT 2005


garabik-news-2005-05 at kassiopeia.juls.savba.sk wrote:
> Hi all,
> I am trying to port my (linux) program to MacOSX, and I need to get a
> list of mounted filesystems. Under linux, it was easy, I was parsing
> /etc/mtab (or /proc/mounts), this works also on some other unices.
> But I have no idea how to do it on MacOSX, apart from calling "mount" as
> an external program and parsing the output - but I prefer "cleaner"
> solutions. Is there one?

why not looking at the content of the /Volumes folder?

my 2 cents

-- 
rafi

	"Imagination is more important than knowledge."
	                            (Albert Einstein)



More information about the Python-list mailing list