Permalink
Browse files

Fixed bug. ~/.lifty wasn't created by defaul

  • Loading branch information...
mads-hartmann committed Nov 16, 2011
1 parent fd4b7d9 commit a1d19dfdc92de52a939e323974b129145f5f91a4
Showing with 7 additions and 1 deletion.
  1. +7 −1 lifty-engine/src/main/scala/org/lifty/engine/io/Storage.scala
@@ -34,7 +34,13 @@ trait Storage {
val root: File
lazy val storage = file(root.getAbsolutePath + / + ".lifty") // TODO: Create it if it doesn't exist
lazy val storage = {
val f = file(root.getAbsolutePath + / + ".lifty")
if (!f.exists()) {
f.mkdirs()
}
f
}
/*
*

0 comments on commit a1d19df

Please sign in to comment.