make unused check branches and tags too
needs time and space optimisation
This commit is contained in:
parent
5ae270001c
commit
297bc648b9
4 changed files with 41 additions and 7 deletions
|
@ -30,3 +30,7 @@ allowWrite :: FilePath -> IO ()
|
|||
allowWrite f = do
|
||||
s <- getFileStatus f
|
||||
setFileMode f $ fileMode s `unionFileModes` ownerWriteMode
|
||||
|
||||
{- Checks if a file mode indicates it's a symlink. -}
|
||||
isSymLink :: FileMode -> Bool
|
||||
isSymLink mode = symbolicLinkMode `intersectFileModes` mode == symbolicLinkMode
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue