summaryrefslogtreecommitdiffstats
path: root/apps/files_external
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_external')
-rw-r--r--apps/files_external/lib/amazons3.php2
-rw-r--r--apps/files_external/lib/swift.php4
2 files changed, 3 insertions, 3 deletions
diff --git a/apps/files_external/lib/amazons3.php b/apps/files_external/lib/amazons3.php
index 34e8974a6d5..24a0346df63 100644
--- a/apps/files_external/lib/amazons3.php
+++ b/apps/files_external/lib/amazons3.php
@@ -517,7 +517,7 @@ class AmazonS3 extends \OC\Files\Storage\Common {
$dh = $this->opendir($path1);
if (is_resource($dh)) {
while (($file = readdir($dh)) !== false) {
- if ($file === '.' || $file === '..') {
+ if (\OC\Files\Filesystem::isIgnoredDir($file)) {
continue;
}
diff --git a/apps/files_external/lib/swift.php b/apps/files_external/lib/swift.php
index 6f93f3c84cd..20d2b8f4988 100644
--- a/apps/files_external/lib/swift.php
+++ b/apps/files_external/lib/swift.php
@@ -175,7 +175,7 @@ class Swift extends \OC\Files\Storage\Common {
$dh = $this->opendir($path);
while ($file = readdir($dh)) {
- if ($file === '.' || $file === '..') {
+ if (\OC\Files\Filesystem::isIgnoredDir($file)) {
continue;
}
@@ -429,7 +429,7 @@ class Swift extends \OC\Files\Storage\Common {
$dh = $this->opendir($path1);
while ($file = readdir($dh)) {
- if ($file === '.' || $file === '..') {
+ if (\OC\Files\Filesystem::isIgnoredDir($file)) {
continue;
}