Пример #1
0
	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();
	}
Пример #2
0
 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);
 }