Merge pull request #1764 from owncloud/Undelete_directory_fix
Fix for Undelete directory action
This commit is contained in:
commit
3d7545269b
|
@ -396,6 +396,9 @@ class Trashbin {
|
||||||
*/
|
*/
|
||||||
private static function calculateSize($view) {
|
private static function calculateSize($view) {
|
||||||
$root = \OCP\Config::getSystemValue('datadirectory').$view->getAbsolutePath('');
|
$root = \OCP\Config::getSystemValue('datadirectory').$view->getAbsolutePath('');
|
||||||
|
if (!file_exists($root)) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
$iterator = new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($root), \RecursiveIteratorIterator::CHILD_FIRST);
|
$iterator = new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($root), \RecursiveIteratorIterator::CHILD_FIRST);
|
||||||
$size = 0;
|
$size = 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue