gettings mounted file systems [newbie]
Grant Edwards
grante at visi.com
Wed Jan 17 17:13:31 EST 2001
In article <lt8zoaoysp.fsf at nathan.gold.siebend.net>, Guido Goldstein wrote:
>
>Hi!
>
>On 17 Jan 2001 12:55:44 GMT
> garabik at center.fmph.uniba.sk.spam (Radovan Garabik) wrote:
>> Moshe Zadka <moshez at zadka.site.co.il> wrote:
>[...]
>> : Why not parse /etc/mtab?
[...]
>> basically, you have no easy portable way, except of
>> walking through all possible mount points and checking
>> os.path.ismount()
>
>Question 1:
>What do you mean with: "... possible mount points..."?
You start at "/" and recursively traverse the entire tree.
>Question 2:
>Am I right when I say: mount w/o any options prints all mounted
>devices to stdout?
On Unix-type systems it generally will. The format varies
somewhat between systems.
--
Grant Edwards grante Yow! Look DEEP into the
at OPENINGS!! Do you see any
visi.com ELVES or EDSELS... or a
HIGHBALL??...
More information about the Python-list
mailing list