diff options
author | Joey Hess <joey@kitenet.net> | 2011-09-28 16:43:10 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2011-09-28 16:43:10 -0400 |
commit | 297bc648b9a3c1b950e65f23a0e974b7934dc4dd (patch) | |
tree | 829ba7455be689c6e389d06420b24e0fe9c74bc6 /Utility | |
parent | 5ae270001c978b306419e6799e67e5f14a1765a2 (diff) |
make unused check branches and tags too
needs time and space optimisation
Diffstat (limited to 'Utility')
-rw-r--r-- | Utility/FileMode.hs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Utility/FileMode.hs b/Utility/FileMode.hs index f5b018c84..6c1c06e82 100644 --- a/Utility/FileMode.hs +++ b/Utility/FileMode.hs @@ -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 |