summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2017-07-25 14:29:44 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2017-08-01 14:57:33 +0200
commit578e4f9903aaa34917eb85aa443c6a84d9ef7a4e (patch)
treee1cd06e29d547b5c3c4c87ba34a144ea1400440b
parent84c22fdeef6986f9038d8563937cc234751d5147 (diff)
downloadnextcloud-server-578e4f9903aaa34917eb85aa443c6a84d9ef7a4e.tar.gz
nextcloud-server-578e4f9903aaa34917eb85aa443c6a84d9ef7a4e.zip
Filter magic dot object when swift directory
Signed-off-by: Robin Appelman <robin@icewind.nl>
-rw-r--r--apps/files_external/lib/Lib/Storage/Swift.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_external/lib/Lib/Storage/Swift.php b/apps/files_external/lib/Lib/Storage/Swift.php
index db5b5bf6d95..8e6e4366912 100644
--- a/apps/files_external/lib/Lib/Storage/Swift.php
+++ b/apps/files_external/lib/Lib/Storage/Swift.php
@@ -276,7 +276,7 @@ class Swift extends \OC\Files\Storage\Common {
/** @var OpenCloud\ObjectStore\Resource\DataObject $object */
foreach ($objects as $object) {
$file = basename($object->getName());
- if ($file !== basename($path)) {
+ if ($file !== basename($path) && $file !== '.') {
$files[] = $file;
}
}