public function stream_close() { $this->flush(); $remainingData = $this->encryptionModule->end($this->fullPath); if ($this->readOnly === false) { if(!empty($remainingData)) { parent::stream_write($remainingData); } $this->encryptionStorage->updateUnencryptedSize($this->fullPath, $this->unencryptedSize); } return parent::stream_close(); }
public function __construct($parameters, \OC\Encryption\Manager $encryptionManager = null, \OC\Encryption\Util $util = null, \OC\Log $logger = null, \OC\Encryption\File $fileHelper = null, $uid = null, $keyStore = null) { $this->keyStore = $keyStore; parent::__construct($parameters, $encryptionManager, $util, $logger, $fileHelper, $uid); }