staticFiles ignores tmp

This commit is contained in:
Michael Snoyman 2010-10-24 21:33:36 +02:00
parent 17cb10c312
commit 2fef1766f4
3 changed files with 2 additions and 0 deletions

View File

@ -127,6 +127,7 @@ getStaticRoute fp' = do
notHidden :: FilePath -> Bool
notHidden ('.':_) = False
notHidden "tmp" = False
notHidden _ = True
getFileList :: FilePath -> IO [[String]]

View File

@ -36,6 +36,7 @@ module Yesod.Yesod
import Yesod.Content hiding (testSuite)
import Yesod.Json hiding (testSuite)
import Yesod.Handler hiding (testSuite)
import qualified Data.ByteString.UTF8 as BSU
#else
import Yesod.Content
import Yesod.Json

0
test/tmp/ignored Normal file
View File