summaryrefslogtreecommitdiffstats
path: root/lib/private/files/stream/encryption.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/files/stream/encryption.php')
-rw-r--r--lib/private/files/stream/encryption.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/private/files/stream/encryption.php b/lib/private/files/stream/encryption.php
index 4a1df840105..2ec15251a23 100644
--- a/lib/private/files/stream/encryption.php
+++ b/lib/private/files/stream/encryption.php
@@ -223,9 +223,8 @@ class Encryption extends Wrapper {
|| $mode === 'wb+'
) {
// We're writing a new file so start write counter with 0 bytes
- // TODO can we remove this completely?
- //$this->unencryptedSize = 0;
- //$this->size = 0;
+ $this->unencryptedSize = 0;
+ $this->size = 0;
$this->readOnly = false;
} else {
$this->readOnly = true;