Filter magic dot object when swift directory

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2017-07-25 14:29:44 +02:00 committed by Roeland Jago Douma
parent 84c22fdeef
commit 578e4f9903
No known key found for this signature in database
GPG Key ID: F941078878347C0C
1 changed files with 1 additions and 1 deletions

View 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;
}
}