diff options
author | Martin <martin.mattel@diemattels.at> | 2015-09-21 14:09:28 +0200 |
---|---|---|
committer | root <martin.mattel@diemattels.at> | 2015-09-22 17:53:15 +0200 |
commit | 491250320a6b19f9a7d546598e97eac1e90f78f7 (patch) | |
tree | 1021d069627a22699713f5c75eba17dac97f734c /apps/files_external | |
parent | 7222e5fb4d8e165733fac4ac9c85e471c0d34fb7 (diff) | |
download | nextcloud-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 'apps/files_external')
-rw-r--r-- | apps/files_external/lib/amazons3.php | 2 | ||||
-rw-r--r-- | apps/files_external/lib/swift.php | 4 |
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; } |