From e3166a601db593216abf99274798329c689f6a6b Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Tue, 25 Jul 2017 14:29:44 +0200 Subject: [PATCH] Filter magic dot object when swift directory Signed-off-by: Robin Appelman --- apps/files_external/lib/Lib/Storage/Swift.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/files_external/lib/Lib/Storage/Swift.php b/apps/files_external/lib/Lib/Storage/Swift.php index 105d1073ae6..a55c3775b2d 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; } } -- 2.39.5