preserve filesize on rename after upload

This commit is contained in:
Thomas Müller 2015-04-14 12:27:12 +02:00
parent f816acde27
commit 387984a0d5
1 changed files with 3 additions and 0 deletions

View File

@ -181,6 +181,9 @@ class Encryption extends Wrapper {
$result = $this->storage->rename($path1, $path2);
if ($result) {
$target = $this->getFullPath($path2);
if (isset($this->unencryptedSize[$source])) {
$this->unencryptedSize[$target] = $this->unencryptedSize[$source];
}
$encryptionModule = $this->getEncryptionModule($path2);
if ($encryptionModule) {
$keyStorage = $this->getKeyStorage($encryptionModule->getId());