Skip to content
Snippets Groups Projects
Commit 3d754526 authored by Lukas Reschke's avatar Lukas Reschke
Browse files

Merge pull request #1764 from owncloud/Undelete_directory_fix

Fix for Undelete directory action
parents c56542c5 e2f87e45
No related branches found
No related tags found
No related merge requests found
......@@ -396,6 +396,9 @@ class Trashbin {
*/
private static function calculateSize($view) {
$root = \OCP\Config::getSystemValue('datadirectory').$view->getAbsolutePath('');
if (!file_exists($root)) {
return 0;
}
$iterator = new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($root), \RecursiveIteratorIterator::CHILD_FIRST);
$size = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment