create data directory recursively

This commit is contained in:
nek0 2014-08-15 16:20:25 +02:00
parent 77aa2bf488
commit e11dc798a5

View file

@ -14,6 +14,6 @@ getActivateR token = do
redirect $ HomeR
Just x -> do
userId <- runDB $ insert $ tokenUser (entityVal x)
liftIO $ createDirectory $ "data" </> (unpack $ extractKey userId)
liftIO $ createDirectoryIfMissing True $ "data" </> (unpack $ extractKey userId)
setMessage $ "User activated"
redirect $ HomeR