staticFiles ignores tmp
This commit is contained in:
parent
17cb10c312
commit
2fef1766f4
@ -127,6 +127,7 @@ getStaticRoute fp' = do
|
||||
|
||||
notHidden :: FilePath -> Bool
|
||||
notHidden ('.':_) = False
|
||||
notHidden "tmp" = False
|
||||
notHidden _ = True
|
||||
|
||||
getFileList :: FilePath -> IO [[String]]
|
||||
|
||||
@ -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
0
test/tmp/ignored
Normal file
Loading…
Reference in New Issue
Block a user