catch the case where files_trashbin/files doesn't exist

This commit is contained in:
Robin Appelman 2014-03-24 12:33:44 +01:00
parent 38b1529c2a
commit 6b66b42f6e

View file

@ -922,6 +922,9 @@ class Trashbin {
$view = new \OC\Files\View('/' . $user . '/files_trashbin');
$dh = $view->opendir('/files');
if (!$dh) {
return false;
}
while ($file = readdir($dh)) {
if ($file !== '.' and $file !== '..') {
return false;