summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2017-08-14 15:11:53 +0200
committerGitHub <noreply@github.com>2017-08-14 15:11:53 +0200
commitca3aef04862ca15c686519d48768f410ccada851 (patch)
tree74a7ae3bacb082ee3246b57c951db7ca5f89a691
parent317521c7e7f5dc3c2bbaf55cada8fb84b905d8a6 (diff)
parent578e4f9903aaa34917eb85aa443c6a84d9ef7a4e (diff)
downloadnextcloud-server-ca3aef04862ca15c686519d48768f410ccada851.tar.gz
nextcloud-server-ca3aef04862ca15c686519d48768f410ccada851.zip
Merge pull request #5872 from nextcloud/swift-filter-dot
Filter magic dot object when swift directory
-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 57df4aa01a5..4dc6ff37b19 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;
}
}