try to make Utility.Mounts portable
This is an unholy mashup, but it just might work. It works on Linux, that's all I've tested. :)
This commit is contained in:
parent
d5051ec088
commit
107a7b9388
7 changed files with 190 additions and 42 deletions
|
@ -82,7 +82,7 @@ type MountPoints = S.Set FilePath
|
|||
|
||||
{- Reads mtab, getting the current set of mount points. -}
|
||||
currentMountPoints :: IO MountPoints
|
||||
currentMountPoints = S.fromList . map mnt_dir <$> read_mtab
|
||||
currentMountPoints = S.fromList . map mnt_dir <$> getMounts
|
||||
|
||||
{- Finds new mount points, given an old and a new set. -}
|
||||
newMountPoints :: MountPoints -> MountPoints -> MountPoints
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue