finding mount points

Suchandra Thapa ssthapa at midway.uchicago.edu
Wed Jul 12 01:13:19 EDT 2000


    Is there any way to find the mount point of a filesystem given
the path to a file within the file system?  Using os.path.ismount 
lets you determine if a path is a mount point but is there any function
that returns something like /mnt/cdrom if you give it a path like
/mnt/cdrom/foo/bar.txt?

-- 
------------------------------------------------------------------

Suchandra S. Thapa 
s-thapa at uchicago.edu

------------------------------------------------------------------



More information about the Python-list mailing list