diff --git a/lib/app.php b/lib/app.php
index 37a99823e3dba5b719db4cfdad864ee857175ae9..22d18b17eec291258b0def00a7ca62c4472847c0 100644
--- a/lib/app.php
+++ b/lib/app.php
@@ -403,4 +403,22 @@ class OC_App{
 			include OC::$SERVERROOT.'/apps/'.$appid.'/appinfo/update.php';
 		}
 	}
+
+	/**
+	 * @param string appid
+	 * @return OC_FilesystemView
+	 */
+	public static function getStorage($appid){
+		if(OC_App::isEnabled($appid)){//sanity check
+			if(OC_User::isLoggedIn()){
+				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);
+				return false;
+			}
+		}else{
+			OC_Log::write('core','Can\'t get app storage, app '.$appid.' not enabled',OC_Log::ERROR);
+			false;
+		}
+	}
 }