summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2013-08-28 15:46:44 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2013-08-28 15:46:44 +0200
commitaed71bb420c6700a75d22d8958977083acbcff46 (patch)
treeb75500853303ea14b4c29425767d9967ced435b1
parent0c02e1efef76430eea8986697cd9736814fb604a (diff)
downloadnextcloud-server-aed71bb420c6700a75d22d8958977083acbcff46.tar.gz
nextcloud-server-aed71bb420c6700a75d22d8958977083acbcff46.zip
also move empty folders to the trash bin as discussed here #4590
-rw-r--r--apps/files_trashbin/lib/trash.php5
1 files changed, 0 insertions, 5 deletions
diff --git a/apps/files_trashbin/lib/trash.php b/apps/files_trashbin/lib/trash.php
index 0dcb2fc82e1..880832f9afa 100644
--- a/apps/files_trashbin/lib/trash.php
+++ b/apps/files_trashbin/lib/trash.php
@@ -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';