]> source.dussan.org Git - nextcloud-server.git/commitdiff
Filter magic dot object when swift directory 6103/head
authorRobin Appelman <robin@icewind.nl>
Tue, 25 Jul 2017 12:29:44 +0000 (14:29 +0200)
committerRobin Appelman <robin@icewind.nl>
Mon, 14 Aug 2017 13:40:25 +0000 (15:40 +0200)
Signed-off-by: Robin Appelman <robin@icewind.nl>
apps/files_external/lib/Lib/Storage/Swift.php

index 105d1073ae6624e9a8b850ba53b271e4968af07a..a55c3775b2dcbf71b98032750ad1968d3092e108 100644 (file)
@@ -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;
                                }
                        }