Delete object to cleanup leftover of paths when removing directories

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2020-11-17 14:29:08 +01:00 committed by backportbot[bot]
parent 6e7ec1dd7a
commit 5d47c68e90

View file

@ -314,6 +314,7 @@ class AmazonS3 extends \OC\Files\Storage\Common {
}
// we reached the end when the list is no longer truncated
} while ($objects['IsTruncated']);
$this->deleteObject($path);
} catch (S3Exception $e) {
\OC::$server->getLogger()->logException($e, ['app' => 'files_external']);
return false;