@@ -14,7 +14,7 @@ touchDirectories path = createDirectoryIfMissing True dir
1414getRecursiveContents :: FilePath -> IO [FilePath]
1515getRecursiveContents topdir = do
1616 names <- getDirectoryContents topdir
17− let properNames = filter (`notElem` [".", ".."]) names
17+ let properNames = filter isProper names
1818 paths <- forM properNames $ \name -> do
1919 let path = topdir </> name
2020 isDirectory <- doesDirectoryExist path
@@ -22,3 +22,4 @@ getRecursiveContents topdir = do
2222 then getRecursiveContents path
2323 else return [path]
2424 return (concat paths)
25+ where isProper = not . (== '.') . head