add allowRead
This commit is contained in:
parent
94251de91e
commit
9c9a3c10ce
1 changed files with 4 additions and 0 deletions
|
@ -64,6 +64,10 @@ preventWrite f = modifyFileMode f $ removeModes writeModes
|
||||||
allowWrite :: FilePath -> IO ()
|
allowWrite :: FilePath -> IO ()
|
||||||
allowWrite f = modifyFileMode f $ addModes [ownerWriteMode]
|
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. -}
|
{- Allows owner and group to read and write to a file. -}
|
||||||
groupSharedModes :: [FileMode]
|
groupSharedModes :: [FileMode]
|
||||||
groupSharedModes =
|
groupSharedModes =
|
||||||
|
|
Loading…
Reference in a new issue