also move empty folders to the trash bin as discussed here #4590

This commit is contained in:
Bjoern Schiessle 2013-08-28 15:46:44 +02:00
parent 0c02e1efef
commit aed71bb420
1 changed files with 0 additions and 5 deletions

View File

@ -72,11 +72,6 @@ class Trashbin {
$mime = $view->getMimeType('files' . $file_path);
if ($view->is_dir('files' . $file_path)) {
$dirContent = $view->getDirectoryContent('files' . $file_path);
// no need to move empty folders to the trash bin
if (empty($dirContent)) {
return true;
}
$type = 'dir';
} else {
$type = 'file';