create data directory recursively
This commit is contained in:
parent
77aa2bf488
commit
e11dc798a5
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue