reworking and extending \OC\Files\Storage\AmazonS3