Replace OC_FileCache usage in files_versions

This commit is contained in:
Bart Visscher 2013-02-06 08:00:57 +01:00
parent 69fd3f42e5
commit 0e548283fc

View file

@ -333,7 +333,8 @@ class Storage {
}
// calculate available space for version history
$rootInfo = \OC_FileCache::get('', '/'. $uid . '/files');
$files_view = new \OC_FilesystemView('/'.$uid.'/files');
$rootInfo = $files_view->getFileInfo('/');
$free = $quota-$rootInfo['size']; // remaining free space for user
if ( $free > 0 ) {
$availableSpace = ($free * self::DEFAULTMAXSIZE / 100) - $versionsSize; // how much space can be used for versions