summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJasper Van der Jeugt <jaspervdj@gmail.com>2011-04-04 12:16:38 +0200
committerJasper Van der Jeugt <jaspervdj@gmail.com>2011-04-04 12:16:38 +0200
commit5cc710d548a94c4b56d3eed0276e269f6be0026a (patch)
tree01c32478ea712f81271dce0a3814e55aa254923f /src
parent383f35df528f86ec9745d7ff05aa80624156d86c (diff)
downloadhakyll-5cc710d548a94c4b56d3eed0276e269f6be0026a.tar.gz
Don't ignore dotfiles in getRecursiveContents
Diffstat (limited to 'src')
-rw-r--r--src/Hakyll/Core/Util/File.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Hakyll/Core/Util/File.hs b/src/Hakyll/Core/Util/File.hs
index 9babc8b..24814ae 100644
--- a/src/Hakyll/Core/Util/File.hs
+++ b/src/Hakyll/Core/Util/File.hs
@@ -47,7 +47,7 @@ getRecursiveContents includeDirs topdir = do
return $ if includeDirs then topdir : concat paths
else concat paths
where
- isProper = not . (== ".") . take 1
+ isProper = (`notElem` [".", ".."])
-- | Check if a timestamp is obsolete compared to the timestamps of a number of
-- files. When they are no files, it is never obsolete.