add allowRead

This commit is contained in:
Joey Hess 2013-11-20 13:42:13 -04:00
parent 94251de91e
commit 9c9a3c10ce

View file

@ -64,6 +64,10 @@ preventWrite f = modifyFileMode f $ removeModes writeModes
allowWrite :: FilePath -> IO ()
allowWrite f = modifyFileMode f $ addModes [ownerWriteMode]
{- Turns a file's owner read bit back on. -}
allowRead :: FilePath -> IO ()
allowRead f = modifyFileMode f $ addModes [ownerReadMode]
{- Allows owner and group to read and write to a file. -}
groupSharedModes :: [FileMode]
groupSharedModes =