summaryrefslogtreecommitdiffstats
path: root/tests/lib/files
diff options
context:
space:
mode:
authorMartin <martin.mattel@diemattels.at>2015-09-21 14:09:28 +0200
committerroot <martin.mattel@diemattels.at>2015-09-22 17:53:15 +0200
commit491250320a6b19f9a7d546598e97eac1e90f78f7 (patch)
tree1021d069627a22699713f5c75eba17dac97f734c /tests/lib/files
parent7222e5fb4d8e165733fac4ac9c85e471c0d34fb7 (diff)
downloadnextcloud-server-491250320a6b19f9a7d546598e97eac1e90f78f7.tar.gz
nextcloud-server-491250320a6b19f9a7d546598e97eac1e90f78f7.zip
Replaces if ($file === '.' || $file === '..') by if(\OC\Files\Filesystem::isIgnoredDir($file)). Eases to find where this operation is used.
Diffstat (limited to 'tests/lib/files')
-rw-r--r--tests/lib/files/storage/wrapper/jail.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/lib/files/storage/wrapper/jail.php b/tests/lib/files/storage/wrapper/jail.php
index a7bd684df44..9b16bc5a321 100644
--- a/tests/lib/files/storage/wrapper/jail.php
+++ b/tests/lib/files/storage/wrapper/jail.php
@@ -30,7 +30,7 @@ class Jail extends \Test\Files\Storage\Storage {
$contents = array();
$dh = $this->sourceStorage->opendir('');
while ($file = readdir($dh)) {
- if ($file !== '.' and $file !== '..') {
+ if (!\OC\Files\Filesystem::isIgnoredDir($file)) {
$contents[] = $file;
}
}