summaryrefslogtreecommitdiff
path: root/Utility/Path.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-03-11 18:12:36 -0400
committerGravatar Joey Hess <joey@kitenet.net>2012-03-11 18:12:36 -0400
commit6fd0c0bfecb8e3585aecfa946515d89c8d443441 (patch)
treec667cd8381088b2483f5026d27584779b3c734ba /Utility/Path.hs
parentb3256946457ec8a2da056573bf49593b225adbd8 (diff)
move
Diffstat (limited to 'Utility/Path.hs')
-rw-r--r--Utility/Path.hs9
1 files changed, 0 insertions, 9 deletions
diff --git a/Utility/Path.hs b/Utility/Path.hs
index eb530442b..76fbc6c4a 100644
--- a/Utility/Path.hs
+++ b/Utility/Path.hs
@@ -128,15 +128,6 @@ preserveOrder (l:ls) new = found ++ preserveOrder ls rest
runPreserveOrder :: ([FilePath] -> IO [FilePath]) -> [FilePath] -> IO [FilePath]
runPreserveOrder a files = preserveOrder files <$> a files
-{- Lists the contents of a directory.
- - Unlike getDirectoryContents, paths are not relative to the directory. -}
-dirContents :: FilePath -> IO [FilePath]
-dirContents d = map (d </>) . filter notcruft <$> getDirectoryContents d
- where
- notcruft "." = False
- notcruft ".." = False
- notcruft _ = True
-
{- Current user's home directory. -}
myHomeDir :: IO FilePath
myHomeDir = homeDirectory <$> (getUserEntryForID =<< getEffectiveUserID)