From: Thomas Tanghus Date: Mon, 23 Apr 2012 22:26:33 +0000 (+0200) Subject: OC_App::getStorage() failed if app dir didn't exist. X-Git-Tag: v4.0.0beta~210^2~4 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6848b069c9f33a164c8a5ab180a9a7f40802527b;p=nextcloud-server.git OC_App::getStorage() failed if app dir didn't exist. --- diff --git a/lib/app.php b/lib/app.php index 9f7d23872f3..29653775253 100755 --- a/lib/app.php +++ b/lib/app.php @@ -519,6 +519,10 @@ class OC_App{ public static function getStorage($appid){ if(OC_App::isEnabled($appid)){//sanity check if(OC_User::isLoggedIn()){ + $view = new OC_FilesystemView('/'.OC_User::getUser()); + if(!$view->file_exists($appid)) { + $view->mkdir($appid); + } return new OC_FilesystemView('/'.OC_User::getUser().'/'.$appid); }else{ OC_Log::write('core','Can\'t get app storage, app, user not logged in',OC_Log::ERROR);