[Tutor] Test If File System is mounted in Linux

Noufal Ibrahim noufal at nibrahim.net.in
Fri Mar 17 10:00:10 CET 2006


On Fri, March 17, 2006 1:06 pm, fortezza-pyt wrote:
> If there a semi-standard way to test if a file system has been mounted
> or not using Python? In the Linux command line, I can type "mount" and
> see all mounted file system, and then see if the one I am looking for is
> in the list. While I could replicate this with
> Python, I am curious if there is an easier way.

A quick Google search gives this
http://bebop.bigasterisk.com/python/docs/MtPython
Non standard perhaps but someone seems to have implemented a module that
does something like this.


-- 
-NI



More information about the Tutor mailing list