This commit is contained in:
Tony Tam 2013-08-16 17:53:03 -07:00
parent 701d4c15a9
commit 83ff341e5e

View File

@ -26,7 +26,11 @@ trait PathUtil {
def getBasePath(host: String, basePath: String) = { def getBasePath(host: String, basePath: String) = {
System.getProperty("fileMap") match { System.getProperty("fileMap") match {
case s: String => s case s: String => {
// return the parent folder
val f = new java.io.File(s)
f.getParent
}
case _ => { case _ => {
if(basePath != "") basePath if(basePath != "") basePath
else host else host