aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/lib
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-09-23 11:34:23 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-09-23 11:34:23 +0200
commitbcdb3c26da28e3797833da3afaac997d067730be (patch)
treee57c43b6b2c5bf1340599be36f257f9f8be99cfb /apps/files_trashbin/lib
parent4c62d71db7f1b8ff490011bcc5050e835b70e745 (diff)
parent491250320a6b19f9a7d546598e97eac1e90f78f7 (diff)
downloadnextcloud-server-bcdb3c26da28e3797833da3afaac997d067730be.tar.gz
nextcloud-server-bcdb3c26da28e3797833da3afaac997d067730be.zip
Merge pull request #19236 from owncloud/call_dot_directories_function
Replaces if ($file === '.' || $file === '..') by public function call isIgnoredDir
Diffstat (limited to 'apps/files_trashbin/lib')
-rw-r--r--apps/files_trashbin/lib/trashbin.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_trashbin/lib/trashbin.php b/apps/files_trashbin/lib/trashbin.php
index 3b2d4cf5929..2a9df94988d 100644
--- a/apps/files_trashbin/lib/trashbin.php
+++ b/apps/files_trashbin/lib/trashbin.php
@@ -895,7 +895,7 @@ class Trashbin {
$view = new \OC\Files\View('/' . $user . '/files_trashbin');
if ($view->is_dir('/files') && $dh = $view->opendir('/files')) {
while ($file = readdir($dh)) {
- if ($file !== '.' and $file !== '..') {
+ if (!\OC\Files\Filesystem::isIgnoredDir($file)) {
return false;
}
}