@mkdir($CONFIG_DATADIRECTORY_ROOT)ordie("Can't create data directory ($CONFIG_DATADIRECTORY_ROOT), you can usually fix this by setting the owner of '$SERVERROOT' to the user that the web server uses (www-data for debian/ubuntu)");
}
if(OC_USER::isLoggedIn()){//if we aren't logged in, there is no use to set up the filesystem
//first set up the local "root" storage and the backupstorage if needed