Merge pull request #6102 from nextcloud/swift-filter-dot-11

[11] Filter magic dot object when swift directory
This commit is contained in:
Robin Appelman 2017-08-14 17:30:27 +02:00 committed by GitHub
commit b0408f9f03
1 changed files with 1 additions and 1 deletions

View File

@ -275,7 +275,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;
}
}