]> source.dussan.org Git - nextcloud-server.git/commitdiff
also move empty folders to the trash bin as discussed here #4590
authorBjoern Schiessle <schiessle@owncloud.com>
Wed, 28 Aug 2013 13:46:44 +0000 (15:46 +0200)
committerBjoern Schiessle <schiessle@owncloud.com>
Wed, 28 Aug 2013 13:46:44 +0000 (15:46 +0200)
apps/files_trashbin/lib/trash.php

index 0dcb2fc82e188ef6822ec6c838b72261e79a3199..880832f9afa1f8606d7208925a76c2cf5a7579d3 100644 (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';