Safe Haskell | Safe |
---|---|
Language | Haskell98 |
Documentation
This is a stripped down mntent, containing only fields available everywhere.
getMounts :: IO [Mntent] Source
Get currently mounted filesystems.
This uses eiher getmntent or getmntinfo, depending on the OS.
getProcMounts :: IO [Mntent] Source
Read /proc/mounts to get currently mounted filesystems.
This works on Linux and related systems, including Android.
Note that on Android, getMounts
will always return [], so
use this instead.