Skip to content
Snippets Groups Projects
Commit 67ce2ad8 authored by Thomas Müller's avatar Thomas Müller
Browse files

Merge pull request #4614 from owncloud/trashbin_also_show_empty_folders

also move empty folders to the trash bin
parents cebb6359 aed71bb4
No related branches found
No related tags found
No related merge requests found
......@@ -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';
......
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