Merge pull request #6103 from nextcloud/swift-filter-dot-12
[12] Filter magic dot object when swift directory
This commit is contained in:
commit
5d2b6b8240
|
@ -276,7 +276,7 @@ class Swift extends \OC\Files\Storage\Common {
|
||||||
/** @var OpenCloud\ObjectStore\Resource\DataObject $object */
|
/** @var OpenCloud\ObjectStore\Resource\DataObject $object */
|
||||||
foreach ($objects as $object) {
|
foreach ($objects as $object) {
|
||||||
$file = basename($object->getName());
|
$file = basename($object->getName());
|
||||||
if ($file !== basename($path)) {
|
if ($file !== basename($path) && $file !== '.') {
|
||||||
$files[] = $file;
|
$files[] = $file;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue