Don't ignore dotfiles in getRecursiveContents
commit5cc710d548a94c4b56d3eed0276e269f6be0026a
authorJasper Van der Jeugt <jaspervdj@gmail.com>
dateMon 4 Apr 2011, 12:16 (16 years ago)
parent383f35d
src/Hakyll/Core/Util/File.hs+1−1
@@ -47,7 +47,7 @@ getRecursiveContents includeDirs topdir = do
4747 return $ if includeDirs then topdir : concat paths
4848 else concat paths
4949 where
50− isProper = not . (== ".") . take 1
50+ isProper = (`notElem` [".", ".."])
5151
5252-- | Check if a timestamp is obsolete compared to the timestamps of a number of
5353-- files. When they are no files, it is never obsolete.